Skip to content

Commit

Permalink
dscc4: fix dscc4_init_dummy_skb check
Browse files Browse the repository at this point in the history
It returns a pointer.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
  • Loading branch information
Alexey Dobriyan authored and Francois Romieu committed Feb 1, 2006
1 parent 726ecdc commit 8351538
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wan/dscc4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8351538

Please sign in to comment.