mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
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>
This commit is contained in:
parent
726ecdcf68
commit
8351538db6
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue