From: Alexey Dobriyan Date: Wed, 1 Feb 2006 08:54:41 +0000 (-0800) Subject: [PATCH] dscc4: fix dscc4_init_dummy_skb check X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3e710bfa6d92e777050f19a52b4fbbb7eeffb3a0;p=openwrt%2Fstaging%2Fblogic.git [PATCH] dscc4: fix dscc4_init_dummy_skb check It returns a pointer. Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/wan/dscc4.c b/drivers/net/wan/dscc4.c index 2f61a47b4716..1ff5de076d21 100644 --- a/drivers/net/wan/dscc4.c +++ b/drivers/net/wan/dscc4.c @@ -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);