mirror of
https://github.com/torvalds/linux.git
synced 2026-07-06 13:11:29 +02:00
virtio: net: make it clear that virtqueue_add_buf() no longer returns > 0
We simplified virtqueue_add_buf(), make it clear in the callers. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
589575a235
commit
0e3daa6491
|
|
@ -635,7 +635,7 @@ static netdev_tx_t start_xmit(struct sk_buff *skb, struct net_device *dev)
|
|||
err = xmit_skb(vi, skb);
|
||||
|
||||
/* This should not happen! */
|
||||
if (unlikely(err < 0)) {
|
||||
if (unlikely(err)) {
|
||||
dev->stats.tx_fifo_errors++;
|
||||
if (net_ratelimit())
|
||||
dev_warn(&dev->dev,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user