]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/atarilance.c
[netdrvr] Remove long-unused bits from Becker template drivers
[linux-2.6-omap-h63xx.git] / drivers / net / atarilance.c
index e01b6a78ec6330115ce08a104498aeb3dbf91194..91783a8008be13be058d4081ad196b613336937f 100644 (file)
@@ -78,7 +78,7 @@ static int lance_debug = LANCE_DEBUG;
 #else
 static int lance_debug = 1;
 #endif
-MODULE_PARM(lance_debug, "i");
+module_param(lance_debug, int, 0);
 MODULE_PARM_DESC(lance_debug, "atarilance debug level (0-3)");
 MODULE_LICENSE("GPL");
 
@@ -804,8 +804,7 @@ static int lance_start_xmit( struct sk_buff *skb, struct net_device *dev )
                ++len;
                
        if (len > skb->len) {
-               skb = skb_padto(skb, len);
-               if (skb == NULL)
+               if (skb_padto(skb, len))
                        return 0;
        }