Re: [Qemu-devel] [PATCH] block: Remove NULL check in bdrv_co_flush

2017-04-26 Thread Kevin Wolf
Am 26.04.2017 um 04:03 hat Fam Zheng geschrieben: > Reported by Coverity. We already use bs in bdrv_inc_in_flight before > checking for NULL. It is unnecessary as all callers pass non-NULL bs, so > drop it. > > Signed-off-by: Fam Zheng Thanks, applied to block-next. Kevin

Re: [Qemu-devel] [PATCH] block: Remove NULL check in bdrv_co_flush

2017-04-26 Thread Max Reitz
On 26.04.2017 04:03, Fam Zheng wrote: > Reported by Coverity. We already use bs in bdrv_inc_in_flight before > checking for NULL. It is unnecessary as all callers pass non-NULL bs, so > drop it. > > Signed-off-by: Fam Zheng > --- > block/io.c | 2 +- > 1 file changed, 1

[Qemu-devel] [PATCH] block: Remove NULL check in bdrv_co_flush

2017-04-25 Thread Fam Zheng
Reported by Coverity. We already use bs in bdrv_inc_in_flight before checking for NULL. It is unnecessary as all callers pass non-NULL bs, so drop it. Signed-off-by: Fam Zheng --- block/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/io.c