From: Alexey Dobriyan Date: Mon, 30 Jan 2006 00:23:56 +0000 (+0100) Subject: dscc4: fix dscc4_init_dummy_skb check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8351538db6613f40089789ec90e1b58304eb7ffd;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git dscc4: fix dscc4_init_dummy_skb check It returns a pointer. Signed-off-by: Alexey Dobriyan Signed-off-by: Francois Romieu --- diff --git a/drivers/net/wan/dscc4.c b/drivers/net/wan/dscc4.c index 2f61a47b471..1ff5de076d2 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);