]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/arm/ether3.c
[PATCH] lockdep: fix smc91x
[linux-2.6-omap-h63xx.git] / drivers / net / arm / ether3.c
index f1d5b1027ff7ef81e432eeea641ec4bb0c750174..081074180e62dc2f029146de075dc316dd4f642b 100644 (file)
@@ -518,8 +518,7 @@ ether3_sendpacket(struct sk_buff *skb, struct net_device *dev)
 
        length = (length + 1) & ~1;
        if (length != skb->len) {
-               skb = skb_padto(skb, length);
-               if (skb == NULL)
+               if (skb_padto(skb, length))
                        goto out;
        }