diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-05-24 19:10:43 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-05-24 20:13:36 +0300 |
commit | d29b92f57ecee125a86587919a22152a702a6411 (patch) | |
tree | 4a79e6c11ee3d6dbd24dc624e98d6217c4ec4e29 /drivers/block/loop.c | |
parent | 3783daeb1d24696ff00125050353cfce4f5b6239 (diff) | |
download | linux-d29b92f57ecee125a86587919a22152a702a6411.tar.xz |
loop: remove redundant assignment to variable error
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>
Diffstat (limited to 'drivers/block/loop.c')
-rw-r--r-- | drivers/block/loop.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index a565c5aafa52..8462ada86e91 100644 --- 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; |