OSDN Git Service

scsi-generic: Simplify error handling code
authorFam Zheng <famz@redhat.com>
Thu, 18 Jan 2018 02:52:45 +0000 (10:52 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 5 Feb 2018 12:54:39 +0000 (13:54 +0100)
commitc6caae553c65475009dc18fdae0c89a1a1d7b427
treec98c93beb85d88ce80da4d91912f208c241e786e
parent0b15209571e5eae706027f42da2ecd175eddc4e3
scsi-generic: Simplify error handling code

Coverity doesn't like the ignored return value introduced in
9d3b155186c278 (hw/block: Fix the return type), and other callers are
converted already in ceff3e1f01.

This one was added lately in d9bcd6f7f23a and missed the train. Do it
now.

Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <20180118025245.13042-1-famz@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/scsi-generic.c