diff options
Diffstat (limited to 'net/ipv6/mcast.c')
-rw-r--r-- | net/ipv6/mcast.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c index 8668ab3af32e..cc8d4e2a9531 100644 --- a/net/ipv6/mcast.c +++ b/net/ipv6/mcast.c | |||
@@ -1407,7 +1407,7 @@ static struct sk_buff *mld_newpack(struct net_device *dev, int size) | |||
1407 | /* we assume size > sizeof(ra) here */ | 1407 | /* we assume size > sizeof(ra) here */ |
1408 | skb = sock_alloc_send_skb(sk, size + LL_RESERVED_SPACE(dev), 1, &err); | 1408 | skb = sock_alloc_send_skb(sk, size + LL_RESERVED_SPACE(dev), 1, &err); |
1409 | 1409 | ||
1410 | if (skb == 0) | 1410 | if (!skb) |
1411 | return NULL; | 1411 | return NULL; |
1412 | 1412 | ||
1413 | skb_reserve(skb, LL_RESERVED_SPACE(dev)); | 1413 | skb_reserve(skb, LL_RESERVED_SPACE(dev)); |
@@ -2144,7 +2144,7 @@ static int ip6_mc_leave_src(struct sock *sk, struct ipv6_mc_socklist *iml, | |||
2144 | /* callers have the socket lock and a write lock on ipv6_sk_mc_lock, | 2144 | /* callers have the socket lock and a write lock on ipv6_sk_mc_lock, |
2145 | * so no other readers or writers of iml or its sflist | 2145 | * so no other readers or writers of iml or its sflist |
2146 | */ | 2146 | */ |
2147 | if (iml->sflist == 0) { | 2147 | if (!iml->sflist) { |
2148 | /* any-source empty exclude case */ | 2148 | /* any-source empty exclude case */ |
2149 | return ip6_mc_del_src(idev, &iml->addr, iml->sfmode, 0, NULL, 0); | 2149 | return ip6_mc_del_src(idev, &iml->addr, iml->sfmode, 0, NULL, 0); |
2150 | } | 2150 | } |