提交 8351538d 编写于 作者: A Alexey Dobriyan 提交者: Francois Romieu

dscc4: fix dscc4_init_dummy_skb check

It returns a pointer.
Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: NFrancois Romieu <romieu@fr.zoreil.com>
上级 726ecdcf
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册