aboutsummaryrefslogtreecommitdiffstats
path: root/util/bufferiszero.c
diff options
context:
space:
mode:
authorChen Qun <kuhn.chenqun@huawei.com>2020-03-11 11:29:27 +0800
committerKevin Wolf <kwolf@redhat.com>2020-03-27 14:47:23 +0100
commit34afc5c298fd4b4279aeec440603b8a1a13ab8c2 (patch)
tree39c8cfa3a8e1e735fd44b6a4836147b60ac38420 /util/bufferiszero.c
parentMerge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-5.0-pull-request' into staging (diff)
downloadqemu-34afc5c298fd4b4279aeec440603b8a1a13ab8c2.tar.xz
qemu-34afc5c298fd4b4279aeec440603b8a1a13ab8c2.zip
block/iscsi:use the flags in iscsi_open() prevent Clang warning
Clang static code analyzer show warning: block/iscsi.c:1920:9: warning: Value stored to 'flags' is never read flags &= ~BDRV_O_RDWR; ^ ~~~~~~~~~~~~ In iscsi_allocmap_init() only checks BDRV_O_NOCACHE, which is the same in both of flags and bs->open_flags. We can use the flags instead bs->open_flags to prevent Clang warning. Reported-by: Euler Robot <euler.robot@huawei.com> Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Message-Id: <20200311032927.35092-1-kuhn.chenqun@huawei.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'util/bufferiszero.c')
0 files changed, 0 insertions, 0 deletions