Am 11.03.2020 um 04:29 hat Chen Qun geschrieben: > 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.ro...@huawei.com> > Signed-off-by: Chen Qun <kuhn.chen...@huawei.com> > Reviewed-by: Kevin Wolf <kw...@redhat.com>
Thanks, applied to the block branch. Kevin