On 1/8/20 12:51 PM, [email protected] wrote: > From: Pan Nengyuan <[email protected]> > > Fixes: > /mnt/sdb/qemu/nbd/server.c: In function 'nbd_handle_request': > /mnt/sdb/qemu/nbd/server.c:2313:9: error: 'ret' may be used uninitialized in > this function [-Werror=maybe-uninitialized] > int ret; > > Reported-by: Euler Robot <[email protected]> > Signed-off-by: Pan Nengyuan <[email protected]> > --- > Changes v2 to v1: > - change 'if(client->export_meta.bitmap)' into 'else' to fix uninitialized > warning and clean up pointless code (suggested by Eric Blake) > --- > nbd/server.c | 10 +--------- > 1 file changed, 1 insertion(+), 9 deletions(-)
Reviewed-by: Richard Henderson <[email protected]> r~
