ipv4: coding style: comparison for equality with NULL
[deliverable/linux.git] / net / ipv4 / icmp.c
index 5e564014a0b75d04a8f64d48c6d3a14fe6df18a1..f5203fba623638d94b03435db86ac4ed696adba8 100644 (file)
@@ -399,7 +399,7 @@ static void icmp_reply(struct icmp_bxm *icmp_param, struct sk_buff *skb)
                return;
 
        sk = icmp_xmit_lock(net);
-       if (sk == NULL)
+       if (!sk)
                return;
        inet = inet_sk(sk);
 
@@ -609,7 +609,7 @@ void icmp_send(struct sk_buff *skb_in, int type, int code, __be32 info)
                                                 skb_in->data,
                                                 sizeof(_inner_type),
                                                 &_inner_type);
-                       if (itp == NULL)
+                       if (!itp)
                                goto out;
 
                        /*
@@ -627,7 +627,7 @@ void icmp_send(struct sk_buff *skb_in, int type, int code, __be32 info)
                return;
 
        sk = icmp_xmit_lock(net);
-       if (sk == NULL)
+       if (!sk)
                goto out_free;
 
        /*
This page took 0.037588 seconds and 5 git commands to generate.