]> git.dujemihanovic.xyz Git - u-boot.git/commit
virtio_ring: Merge identical variables
authorAndrew Scull <ascull@google.com>
Mon, 16 May 2022 10:41:29 +0000 (10:41 +0000)
committerTom Rini <trini@konsulko.com>
Wed, 8 Jun 2022 13:24:03 +0000 (09:24 -0400)
commit68f8bf21c72515adcdd41ac6f8dbebb29259aeb7
tree7cfb5cb209b4221cdba3e634a18bc61fbc83a9a1
parented1cbbe2afe4d4c7c25316db4c2e15c4c579fc4e
virtio_ring: Merge identical variables

The variables `total_sg` and `descs_used` have the same value. Replace
the few uses of `total_sg` with `descs_used` to simplify the situation.

Signed-off-by: Andrew Scull <ascull@google.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/virtio/virtio_ring.c