]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/net/arcnet/rfc1201.c
arcnet: Remove pointer comparisons to NULL
[karo-tx-linux.git] / drivers / net / arcnet / rfc1201.c
index 9040a8be155c32db85027fcbf267133bd2a68a84..1d777c1e8383ad83ff310e82eb470dfc10a11cdf 100644 (file)
@@ -178,7 +178,7 @@ static void rx(struct net_device *dev, int bufnum,
                in->sequence = soft->sequence;
 
                skb = alloc_skb(length + ARC_HDR_SIZE, GFP_ATOMIC);
-               if (skb == NULL) {
+               if (!skb) {
                        dev->stats.rx_dropped++;
                        return;
                }
@@ -286,7 +286,7 @@ static void rx(struct net_device *dev, int bufnum,
                        }
                        in->skb = skb = alloc_skb(508 * in->numpackets + ARC_HDR_SIZE,
                                                  GFP_ATOMIC);
-                       if (skb == NULL) {
+                       if (!skb) {
                                arc_printk(D_NORMAL, dev, "(split) memory squeeze, dropping packet.\n");
                                lp->rfc1201.aborted_seq = soft->sequence;
                                dev->stats.rx_dropped++;