crypto: virtio - remove duplicate check if queue is broken
authorLi RongQing <lirongqing@baidu.com>
Thu, 1 Feb 2024 06:17:16 +0000 (14:17 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 9 Feb 2024 04:57:18 +0000 (12:57 +0800)
virtqueue_enable_cb() will call virtqueue_poll() which will check if
queue is broken at beginning, so remove the virtqueue_is_broken() call

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/virtio/virtio_crypto_core.c

index b909c6a..6a67d70 100644 (file)
@@ -42,8 +42,6 @@ static void virtcrypto_ctrlq_callback(struct virtqueue *vq)
                        virtio_crypto_ctrlq_callback(vc_ctrl_req);
                        spin_lock_irqsave(&vcrypto->ctrl_lock, flags);
                }
-               if (unlikely(virtqueue_is_broken(vq)))
-                       break;
        } while (!virtqueue_enable_cb(vq));
        spin_unlock_irqrestore(&vcrypto->ctrl_lock, flags);
 }