This removes the following checkpatch issue: - ERROR: do not use assignment in if condition
Signed-off-by: Luca Ceresoli <luca.ceres...@comelit.it> Cc: Wolfgang Denk <w...@denx.de> Cc: Ben Warren <biggerbadder...@gmail.com> Cc: Mike Frysinger <vap...@gentoo.org> --- Changes since v1: none. net/net.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/net/net.c b/net/net.c index 8b4d28e..1c4c982 100644 --- a/net/net.c +++ b/net/net.c @@ -1614,7 +1614,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 -- 1.7.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot