From: Jonas Rebmann <[email protected]>

At log level 7, this permanently prints over a hundred times per second,
probably unneeded debug print, drop it.

Signed-off-by: Jonas Rebmann <[email protected]>
Reviewed-by: Ahmad Fatoum <[email protected]>
Link: 
https://lore.barebox.org/[email protected]
Signed-off-by: Sascha Hauer <[email protected]>
(cherry picked from commit d4131710d095c6a36b338dace449a365f4ea4810)
Signed-off-by: Ahmad Fatoum <[email protected]>
---
 drivers/virtio/virtio_ring.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c
index 284721aeff5b..c1c84e49615f 100644
--- a/drivers/virtio/virtio_ring.c
+++ b/drivers/virtio/virtio_ring.c
@@ -241,10 +241,8 @@ void *virtqueue_get_buf(struct virtqueue *vq, unsigned int 
*len)
        u16 last_used;
        void *ret;
 
-       if (!more_used(vq)) {
-               vq_debug(vq, "No more buffers in queue\n");
+       if (!more_used(vq))
                return NULL;
-       }
 
        /* Only get used array entries after they have been exposed by host */
        virtio_rmb();
-- 
2.47.3


Reply via email to