diff options
| author | Chen Qun <kuhn.chenqun@huawei.com> | 2020-03-11 11:29:27 +0800 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2020-03-27 14:47:23 +0100 |
| commit | 34afc5c298fd4b4279aeec440603b8a1a13ab8c2 (patch) | |
| tree | 39c8cfa3a8e1e735fd44b6a4836147b60ac38420 /net/filter-buffer.c | |
| parent | cfe68ae025f704f336d7dd3d1903ce37b445831d (diff) | |
| download | focaccia-qemu-34afc5c298fd4b4279aeec440603b8a1a13ab8c2.tar.gz focaccia-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 'net/filter-buffer.c')
0 files changed, 0 insertions, 0 deletions