]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/smc9194.c
[PATCH] ixgb: fix tx unit hang - properly calculate desciptor count
[linux-2.6-omap-h63xx.git] / drivers / net / smc9194.c
index 6cf16f322ad50df76c15c38eae08c9b1e370dd4f..8b0321f1976c7cdb128a159081ed86623ac8d1f7 100644 (file)
@@ -523,8 +523,7 @@ static int smc_wait_to_send_packet( struct sk_buff * skb, struct net_device * de
        length = skb->len;
 
        if (length < ETH_ZLEN) {
-               skb = skb_padto(skb, ETH_ZLEN);
-               if (skb == NULL) {
+               if (skb_padto(skb, ETH_ZLEN)) {
                        netif_wake_queue(dev);
                        return 0;
                }