diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-08-06 12:06:01 +0100 |
---|---|---|
committer | Boris Ostrovsky <boris.ostrovsky@oracle.com> | 2021-08-09 19:52:48 -0500 |
commit | bdb46bac571a6b1e76188acb764d935e3ef07d5a (patch) | |
tree | 0e2c14974ed31c0171327e5dc00db63f2facba40 | |
parent | d4c8f473c7d30ac4c065c32bc623a7a6773e4044 (diff) | |
download | linux-for-linus-5.14b.tar.gz |
xen-blkfront: Remove redundant assignment to variable errfor-linus-5.14b
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 <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210806110601.11386-1-colin.king@canonical.com
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
-rw-r--r-- | drivers/block/xen-blkfront.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c index d83fee21f6c59c..715bfa8aca7f50 100644 --- a/drivers/block/xen-blkfront.c +++ b/drivers/block/xen-blkfront.c @@ -1092,7 +1092,6 @@ static int xlvbd_alloc_gendisk(blkif_sector_t capacity, err = xlbd_reserve_minors(minor, nr_minors); if (err) return err; - err = -ENODEV; memset(&info->tag_set, 0, sizeof(info->tag_set)); info->tag_set.ops = &blkfront_mq_ops; |