Re: [Qemu-block] [PATCH v6 05/12] nbd/server: Simplify nbd_negotiate_options loop

2017-10-30 Thread Vladimir Sementsov-Ogievskiy
27.10.2017 13:40, Eric Blake wrote: 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 Reviewed-by: Vladimir Sementsov-Ogievskiy -- Best

[Qemu-block] [PATCH v6 05/12] nbd/server: Simplify nbd_negotiate_options loop

2017-10-27 Thread Eric Blake
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 --- v6: split from length validation [Vladimir] --- nbd/server.c | 18 +++--- 1 file changed, 3