linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / drivers / net / eexpress.c
index 0701c1d..82bd356 100644 (file)
@@ -97,6 +97,7 @@
 #define LOCKUP16 0
 #endif
   
+#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
@@ -676,7 +677,8 @@ static int eexp_xmit(struct sk_buff *buf, struct net_device *dev)
 #endif
 
        if (buf->len < ETH_ZLEN) {
-               if (skb_padto(buf, ETH_ZLEN))
+               buf = skb_padto(buf, ETH_ZLEN);
+               if (buf == NULL)
                        return 0;
                length = ETH_ZLEN;
        }
@@ -1698,7 +1700,7 @@ MODULE_LICENSE("GPL");
  * are specified, we verify and then use them.  If no parameters are given, we
  * autoprobe for one card only.
  */
-int __init init_module(void)
+int init_module(void)
 {
        struct net_device *dev;
        int this_dev, found = 0;