diff options
author | Luca Ceresoli <luca.ceresoli@comelit.it> | 2011-05-04 06:40:47 +0400 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-05-13 00:07:41 +0400 |
commit | ccb9ebefbec68f18b4f479b774fa5f6edc2ad819 (patch) | |
tree | 8442b4072a9d36cabc613412484acbbcf69c1a30 /net | |
parent | c819abeef7e8d924baf3d15a1eef51525d90182e (diff) | |
download | u-boot-ccb9ebefbec68f18b4f479b774fa5f6edc2ad819.tar.xz |
net/net.c: cosmetic: do not use assignment in if condition
This removes the following checkpatch issue:
- ERROR: do not use assignment in if condition
Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/net.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1616,7 +1616,8 @@ NetReceive(volatile uchar *inpkt, int len) * a fragment, and either the complete packet or NULL if * it is a fragment (if !CONFIG_IP_DEFRAG, it returns NULL) */ - if (!(ip = NetDefragment(ip, &len))) + ip = NetDefragment(ip, &len); + if (!ip) return; /* * watch for ICMP host redirects |