]> err.no Git - linux-2.6/blobdiff - drivers/net/cassini.c
Pull kmalloc into release branch
[linux-2.6] / drivers / net / cassini.c
index 39f36aa05aa8b005bf4b2b2638ef7f1a47810f6e..b89c7bb2c591a74ca700460d938183022018dece 100644 (file)
@@ -66,7 +66,6 @@
  * by default, the selective clear mask is set up to process rx packets.  
  */
 
-#include <linux/config.h>
 
 #include <linux/module.h>
 #include <linux/kernel.h>
@@ -2915,8 +2914,7 @@ static int cas_start_xmit(struct sk_buff *skb, struct net_device *dev)
         */
        static int ring; 
 
-       skb = skb_padto(skb, cp->min_frame_size);
-       if (!skb)
+       if (skb_padto(skb, cp->min_frame_size))
                return 0;
 
        /* XXX: we need some higher-level QoS hooks to steer packets to