diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2006-01-30 01:23:56 +0100 |
---|---|---|
committer | Francois Romieu <romieu@electric-eye.fr.zoreil.com> | 2006-02-01 22:03:54 +0100 |
commit | 8351538db6613f40089789ec90e1b58304eb7ffd (patch) | |
tree | e52f19bff0847a2aa5a35d23588efd7df61a79e0 /drivers/net | |
parent | r8169: fix forced-mode link settings (diff) | |
download | linux-8351538db6613f40089789ec90e1b58304eb7ffd.tar.xz linux-8351538db6613f40089789ec90e1b58304eb7ffd.zip |
dscc4: fix dscc4_init_dummy_skb check
It returns a pointer.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wan/dscc4.c | 2 |
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); |