aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/virtio_net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index 6f15d9b315a1..7b687469199b 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -938,7 +938,7 @@ static bool virtnet_send_command(struct virtnet_info *vi, u8 class, u8 cmd,
938 sgs[out_num] = &stat; 938 sgs[out_num] = &stat;
939 939
940 BUG_ON(out_num + 1 > ARRAY_SIZE(sgs)); 940 BUG_ON(out_num + 1 > ARRAY_SIZE(sgs));
941 BUG_ON(virtqueue_add_sgs(vi->cvq, sgs, out_num, 1, vi, GFP_ATOMIC) < 0); 941 virtqueue_add_sgs(vi->cvq, sgs, out_num, 1, vi, GFP_ATOMIC);
942 942
943 if (unlikely(!virtqueue_kick(vi->cvq))) 943 if (unlikely(!virtqueue_kick(vi->cvq)))
944 return status == VIRTIO_NET_OK; 944 return status == VIRTIO_NET_OK;