summaryrefslogtreecommitdiffstats
path: root/drivers/net/wan/dscc4.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2006-02-01 00:54:41 -0800
committerJeff Garzik <jgarzik@pobox.com>2006-02-07 02:03:29 -0500
commit3e710bfa6d92e777050f19a52b4fbbb7eeffb3a0 (patch)
tree849b5a705ec79ffab2be7acd59b463c325f8319d /drivers/net/wan/dscc4.c
parent3418db7cfacffcf120996b10a785b7315bf0df82 (diff)
downloadblackbird-op-linux-3e710bfa6d92e777050f19a52b4fbbb7eeffb3a0.tar.gz
blackbird-op-linux-3e710bfa6d92e777050f19a52b4fbbb7eeffb3a0.zip
[PATCH] dscc4: fix dscc4_init_dummy_skb check
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>
Diffstat (limited to 'drivers/net/wan/dscc4.c')
-rw-r--r--drivers/net/wan/dscc4.c2
1 files changed, 1 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud