commit | 50c3a487d507568359ccbce1b15bcdfc01edf7ef | [log] [tgz] |
---|---|---|
author | YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org> | Tue Jan 22 06:32:49 2013 +0000 |
committer | David S. Miller <davem@davemloft.net> | Tue Jan 22 14:28:28 2013 -0500 |
tree | 78d3978bde268dabbdc92c3ce25ccb3fcf95e4b5 | |
parent | 8fbcec241df21d1ba2aba09974ea9017832b69b0 [diff] [blame] |
ipv4: Use IS_ERR_OR_NULL(). Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 79c8dbe..cf6158f 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c
@@ -971,7 +971,7 @@ 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; }