]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/seeq8005.c
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux...
[linux-2.6-omap-h63xx.git] / drivers / net / seeq8005.c
index bcef03feb2fc571ffe5a8eaeb5f12034e03b9d3a..efd0f235020fb4e7099174d70232aece63581c0d 100644 (file)
@@ -396,8 +396,7 @@ static int seeq8005_send_packet(struct sk_buff *skb, struct net_device *dev)
        unsigned char *buf;
 
        if (length < ETH_ZLEN) {
-               skb = skb_padto(skb, ETH_ZLEN);
-               if (skb == NULL)
+               if (skb_padto(skb, ETH_ZLEN))
                        return 0;
                length = ETH_ZLEN;
        }