提交 ccb9ebef 编写于 作者: L Luca Ceresoli 提交者: Wolfgang Denk

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: NLuca Ceresoli <luca.ceresoli@comelit.it>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Ben Warren <biggerbadderben@gmail.com>
上级 c819abee
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册