On 27/8/23 20:29, Laszlo Ersek wrote:
In the vhost_user_set_vring_addr() function, we calculate
"reply_supported" unconditionally, even though we'll only need it if
"wait_for_reply" is also true.
Restrict the scope of "reply_supported" to the minimum.
This is purely refactoring -- no observable change.
Cc: "Michael S. Tsirkin" <[email protected]> (supporter:vhost)
Cc: Eugenio Perez Martin <[email protected]>
Cc: German Maglione <[email protected]>
Cc: Liu Jiang <[email protected]>
Cc: Sergio Lopez Pascual <[email protected]>
Cc: Stefano Garzarella <[email protected]>
Signed-off-by: Laszlo Ersek <[email protected]>
---
hw/virtio/vhost-user.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>