On Mon, Jan 06, 2020 at 03:23:43PM -0300, Daniel Henrique Barboza wrote: > Both the 'fail' label and 'ret' variable can be removed from the > function. Instead, call 'return -EINVAL' in the error conditions. > > CC: Stefan Hajnoczi > CC: qemu-block@nongnu.org > Signed-off-by: Daniel Henrique Barboza > --- > block/dmg.c | 10 ++-------- > 1 file changed, 2 insertions(+), 8 deletions(-) Reviewed-by: Stefan Hajnoczi