mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 19:43:40 +02:00
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>
This commit is contained in:
parent
3783daeb1d
commit
d29b92f57e
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user