Skip to content

Commit da20b58

Browse files
Colin Ian Kingaxboe
Colin Ian King
authored andcommitted
xen-blkfront: Remove redundant assignment to variable err
The variable err is being assigned a value that is never read, the assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: Boris Ostrovsky <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 3087b33 commit da20b58

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/block/xen-blkfront.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,6 @@ static int xlvbd_alloc_gendisk(blkif_sector_t capacity,
10921092
err = xlbd_reserve_minors(minor, nr_minors);
10931093
if (err)
10941094
return err;
1095-
err = -ENODEV;
10961095

10971096
memset(&info->tag_set, 0, sizeof(info->tag_set));
10981097
info->tag_set.ops = &blkfront_mq_ops;

0 commit comments

Comments
 (0)