]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/net/lasi_82596.c
[POWERPC] silence a warning
[karo-tx-linux.git] / drivers / net / lasi_82596.c
index 957888de3d7e8578c0f05ad4616a4d688967a26e..1ab09447baa551d6eece478f079f3ee0aef674dc 100644 (file)
@@ -1083,8 +1083,7 @@ static int i596_start_xmit(struct sk_buff *skb, struct net_device *dev)
                                skb->len, skb->data));
 
        if (length < ETH_ZLEN) {
-               skb = skb_padto(skb, ETH_ZLEN);
-               if (skb == NULL)
+               if (skb_padto(skb, ETH_ZLEN))
                        return 0;
                length = ETH_ZLEN;
        }