projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ipv4: coding style: comparison for equality with NULL
[deliverable/linux.git]
/
net
/
ipv4
/
ip_sockglue.c
diff --git
a/net/ipv4/ip_sockglue.c
b/net/ipv4/ip_sockglue.c
index f6a0d54b308ac8a758724fab9bb92afddcfcb333..f64b1b24c64fb46da859826921ef07851e2bcaae 100644
(file)
--- a/
net/ipv4/ip_sockglue.c
+++ b/
net/ipv4/ip_sockglue.c
@@
-351,7
+351,7
@@
int ip_ra_control(struct sock *sk, unsigned char on,
return 0;
}
}
- if (
new_ra == NULL
) {
+ if (
!new_ra
) {
spin_unlock_bh(&ip_ra_lock);
return -ENOBUFS;
}
@@
-482,7
+482,7
@@
int ip_recv_error(struct sock *sk, struct msghdr *msg, int len, int *addr_len)
err = -EAGAIN;
skb = sock_dequeue_err_skb(sk);
- if (
skb == NULL
)
+ if (
!skb
)
goto out;
copied = skb->len;
This page took
0.024448 seconds
and
5
git commands to generate.