summaryrefslogtreecommitdiffstats
path: root/sound/virtio/virtio_ctl_msg.c
diff options
context:
space:
mode:
authorLi RongQing <lirongqing@baidu.com>2024-01-24 20:08:34 +0800
committerTakashi Iwai <tiwai@suse.de>2024-01-24 14:41:37 +0100
commitd62ccb59afcd94e8d301433974672b156392289d (patch)
treebe554a75b77924fe6ba4a11c203d8c9c15e67ecb /sound/virtio/virtio_ctl_msg.c
parent7c4298534ce3c4b85099aba53442ec82ef17578b (diff)
downloadlinux-stable-d62ccb59afcd94e8d301433974672b156392289d.tar.gz
linux-stable-d62ccb59afcd94e8d301433974672b156392289d.tar.bz2
linux-stable-d62ccb59afcd94e8d301433974672b156392289d.zip
ALSA: virtio: remove duplicate check if queue is broken
virtqueue_enable_cb() will call virtqueue_poll() which will check if queue is broken at beginning, so remove the virtqueue_is_broken() call Signed-off-by: Li RongQing <lirongqing@baidu.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Link: https://lore.kernel.org/r/20240124120834.49410-1-lirongqing@baidu.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/virtio/virtio_ctl_msg.c')
-rw-r--r--sound/virtio/virtio_ctl_msg.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/virtio/virtio_ctl_msg.c b/sound/virtio/virtio_ctl_msg.c
index 18dc5aca2e0c..9dabea01277f 100644
--- a/sound/virtio/virtio_ctl_msg.c
+++ b/sound/virtio/virtio_ctl_msg.c
@@ -303,8 +303,6 @@ void virtsnd_ctl_notify_cb(struct virtqueue *vqueue)
virtqueue_disable_cb(vqueue);
while ((msg = virtqueue_get_buf(vqueue, &length)))
virtsnd_ctl_msg_complete(msg);
- if (unlikely(virtqueue_is_broken(vqueue)))
- break;
} while (!virtqueue_enable_cb(vqueue));
spin_unlock_irqrestore(&queue->lock, flags);
}