qemu-patch-raspberry4/nbd
Eric Blake 8cbee49ed7 nbd/server: Simplify nbd_negotiate_options loop
Instead of making each caller check whether a transmission error
occurred, we can sink a common error check to the end of the loop.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20171027104037.8319-6-eblake@redhat.com>
[eblake: squash in compiler warning fix]
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
2017-10-30 21:07:59 +01:00
..
client.c nbd: Move nbd_errno_to_system_errno() to public header 2017-10-30 21:07:21 +01:00
common.c nbd: Expose constants and structs for structured read 2017-10-30 21:07:21 +01:00
Makefile.objs nbd: Split nbd.c 2016-01-15 18:58:02 +01:00
nbd-internal.h nbd: Expose constants and structs for structured read 2017-10-30 21:07:21 +01:00
server.c nbd/server: Simplify nbd_negotiate_options loop 2017-10-30 21:07:59 +01:00
trace-events nbd: Move nbd_errno_to_system_errno() to public header 2017-10-30 21:07:21 +01:00