diff options
author | Chen Qun <kuhn.chenqun@huawei.com> | 2020-03-02 21:07:06 +0800 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2020-03-09 15:59:31 +0100 |
commit | 76e91cda07d783c4dca50df3cd87156bd14b692c (patch) | |
tree | b393d7815a6d63dc5b0b4cd7fe467524d968f983 /block | |
parent | 35c9453592944c46bc4f8cd273b9ed54362a50e5 (diff) | |
download | qemu-76e91cda07d783c4dca50df3cd87156bd14b692c.zip qemu-76e91cda07d783c4dca50df3cd87156bd14b692c.tar.gz qemu-76e91cda07d783c4dca50df3cd87156bd14b692c.tar.bz2 |
block/file-posix: Remove redundant statement in raw_handle_perm_lock()
Clang static code analyzer show warning:
block/file-posix.c:891:9: warning: Value stored to 'op' is never read
op = RAW_PL_ABORT;
^ ~~~~~~~~~~~~
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: <20200302130715.29440-5-kuhn.chenqun@huawei.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'block')
-rw-r--r-- | block/file-posix.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/block/file-posix.c b/block/file-posix.c index 6345477..0f77447 100644 --- a/block/file-posix.c +++ b/block/file-posix.c @@ -888,7 +888,6 @@ static int raw_handle_perm_lock(BlockDriverState *bs, "Is another process using the image [%s]?\n", bs->filename); } - op = RAW_PL_ABORT; /* fall through to unlock bytes. */ case RAW_PL_ABORT: raw_apply_lock_bytes(s, s->fd, s->perm, ~s->shared_perm, |