projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3783dae
)
loop: remove redundant assignment to variable error
author
Colin Ian King
<colin.king@canonical.com>
Sun, 24 May 2020 16:10:43 +0000
(17:10 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Sun, 24 May 2020 17:13:36 +0000
(11:13 -0600)
The variable error is being assigned a value that is never
read so the assignment is redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c
patch
|
blob
|
history
diff --git
a/drivers/block/loop.c
b/drivers/block/loop.c
index
a565c5a
..
8462ada
100644
(file)
--- a/
drivers/block/loop.c
+++ b/
drivers/block/loop.c
@@
-1136,8
+1136,6
@@
static int loop_configure(struct loop_device *lo, fmode_t mode,
if (error)
goto out_unlock;
- error = 0;
-
set_device_ro(bdev, (lo->lo_flags & LO_FLAGS_READ_ONLY) != 0);
lo->use_dio = lo->lo_flags & LO_FLAGS_DIRECT_IO;