Skip to content

Commit

Permalink
virtio: net: make it clear that virtqueue_add_buf() no longer returns…
Browse files Browse the repository at this point in the history
… > 0

We simplified virtqueue_add_buf(), make it clear in the callers.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
Rusty Russell committed Dec 18, 2012
1 parent 589575a commit 0e3daa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/virtio_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0e3daa6

Please sign in to comment.