]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/82596.c
[PATCH] Update smc91x driver with ARM Versatile board info
[linux-2.6-omap-h63xx.git] / drivers / net / 82596.c
index da0c878dcba8a4ee7b63255162834d340115f1cd..7e2ca9571467c8e4d9f441c0147537b69371ec35 100644 (file)
@@ -40,7 +40,6 @@
 
  */
 
-#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
@@ -1070,8 +1069,7 @@ static int i596_start_xmit(struct sk_buff *skb, struct net_device *dev)
                                skb->len, (unsigned int)skb->data));
 
        if (skb->len < ETH_ZLEN) {
-               skb = skb_padto(skb, ETH_ZLEN);
-               if (skb == NULL)
+               if (skb_padto(skb, ETH_ZLEN))
                        return 0;
                length = ETH_ZLEN;
        }