]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/lance.c
[PATCH] skge: fix truncated collision threshold mask
[linux-2.6-omap-h63xx.git] / drivers / net / lance.c
index bb5ad479210b17f8b93498912926e461da854090..c1c3452c90ca2696ac82edd8ccf865be33a1264b 100644 (file)
@@ -968,8 +968,7 @@ static int lance_start_xmit(struct sk_buff *skb, struct net_device *dev)
        /* The old LANCE chips doesn't automatically pad buffers to min. size. */
        if (chip_table[lp->chip_version].flags & LANCE_MUST_PAD) {
                if (skb->len < ETH_ZLEN) {
-                       skb = skb_padto(skb, ETH_ZLEN);
-                       if (skb == NULL)
+                       if (skb_padto(skb, ETH_ZLEN))
                                goto out;
                        lp->tx_ring[entry].length = -ETH_ZLEN;
                }