diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-10-16 15:26:15 +0200 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-12-18 05:50:36 +0100 |
commit | 0e3daa6491699640b9efc321d61310aee9a809d5 (patch) | |
tree | 1e13899c95954e446b0d97057e55b1fe4c0315e6 /drivers/net/virtio_net.c | |
parent | virtio: console: make it clear that virtqueue_add_buf() no longer returns > 0 (diff) | |
download | linux-0e3daa6491699640b9efc321d61310aee9a809d5.tar.xz linux-0e3daa6491699640b9efc321d61310aee9a809d5.zip |
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/net/virtio_net.c')
-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) 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, |