Skip to content

Commit 18c6c96

Browse files
luo penghaoaxboe
authored andcommitted
loop: Remove duplicate assignments
The assignment and operation there will be overwritten later, so it should be deleted. The clang_analyzer complains as follows: drivers/block/loop.c:2330:2 warning: Value stored to 'err' is never read change in v2: Repair the sending email box Reported-by: Zeal Robot <[email protected]> Signed-off-by: luo penghao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 2754808 commit 18c6c96

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/block/loop.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2003,7 +2003,6 @@ static int loop_add(int i)
20032003
goto out_free_dev;
20042004
i = err;
20052005

2006-
err = -ENOMEM;
20072006
lo->tag_set.ops = &loop_mq_ops;
20082007
lo->tag_set.nr_hw_queues = 1;
20092008
lo->tag_set.queue_depth = 128;

0 commit comments

Comments
 (0)