Skip to content
Snippets Groups Projects
Commit ccb9ebef authored by Luca Ceresoli's avatar Luca Ceresoli Committed by Wolfgang Denk
Browse files

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: default avatarLuca Ceresoli <luca.ceresoli@comelit.it>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Ben Warren <biggerbadderben@gmail.com>
parent c819abee
No related branches found
No related tags found
No related merge requests found
...@@ -1616,7 +1616,8 @@ NetReceive(volatile uchar *inpkt, int len) ...@@ -1616,7 +1616,8 @@ NetReceive(volatile uchar *inpkt, int len)
* a fragment, and either the complete packet or NULL if * a fragment, and either the complete packet or NULL if
* it is a fragment (if !CONFIG_IP_DEFRAG, it returns NULL) * it is a fragment (if !CONFIG_IP_DEFRAG, it returns NULL)
*/ */
if (!(ip = NetDefragment(ip, &len))) ip = NetDefragment(ip, &len);
if (!ip)
return; return;
/* /*
* watch for ICMP host redirects * watch for ICMP host redirects
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment