]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] dscc4: fix dscc4_init_dummy_skb check
authorAlexey Dobriyan <adobriyan@gmail.com>
Wed, 1 Feb 2006 08:54:41 +0000 (00:54 -0800)
committerJeff Garzik <jgarzik@pobox.com>
Tue, 7 Feb 2006 07:03:29 +0000 (02:03 -0500)
It returns a pointer.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/wan/dscc4.c

index 2f61a47b4716947d331dca4a5e2ee2d311c05d15..1ff5de076d216ced4663d489d0be537d94ffd745 100644 (file)
@@ -1943,7 +1943,7 @@ static int dscc4_init_ring(struct net_device *dev)
                                        (++i%TX_RING_SIZE)*sizeof(*tx_fd));
        } while (i < TX_RING_SIZE);
 
-       if (dscc4_init_dummy_skb(dpriv) < 0)
+       if (!dscc4_init_dummy_skb(dpriv))
                goto err_free_dma_tx;
 
        memset(dpriv->rx_skbuff, 0, sizeof(struct sk_buff *)*RX_RING_SIZE);