ipv4: Use IS_ERR_OR_NULL().
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
8fbcec241d
commit
50c3a487d5
@@ -971,7 +971,7 @@ back_from_confirm:
|
||||
sizeof(struct udphdr), &ipc, &rt,
|
||||
msg->msg_flags);
|
||||
err = PTR_ERR(skb);
|
||||
if (skb && !IS_ERR(skb))
|
||||
if (!IS_ERR_OR_NULL(skb))
|
||||
err = udp_send_skb(skb, fl4);
|
||||
goto out;
|
||||
}
|
||||
|
Reference in New Issue
Block a user