diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-10-16 09:26:15 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-12-17 23:50:36 -0500 |
commit | 0e3daa6491699640b9efc321d61310aee9a809d5 (patch) | |
tree | 1e13899c95954e446b0d97057e55b1fe4c0315e6 /drivers | |
parent | 589575a23562b588c82bdb57ed8c09bee5f0f174 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/virtio_net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 7c7f5a94ca4f..62898910708a 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c | |||
@@ -635,7 +635,7 @@ static netdev_tx_t start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
635 | err = xmit_skb(vi, skb); | 635 | err = xmit_skb(vi, skb); |
636 | 636 | ||
637 | /* This should not happen! */ | 637 | /* This should not happen! */ |
638 | if (unlikely(err < 0)) { | 638 | if (unlikely(err)) { |
639 | dev->stats.tx_fifo_errors++; | 639 | dev->stats.tx_fifo_errors++; |
640 | if (net_ratelimit()) | 640 | if (net_ratelimit()) |
641 | dev_warn(&dev->dev, | 641 | dev_warn(&dev->dev, |