diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-08-06 13:06:01 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-08-10 04:04:46 +0200 |
commit | da20b58d5bbbb0d23ae9530992a37d0f0d1787a4 (patch) | |
tree | 1c22922b392a32abf5a852a9af7f06308a000777 /drivers/block/xen-blkfront.c | |
parent | block/rnbd: Use sysfs_emit instead of s*printf function for sysfs show (diff) | |
download | linux-da20b58d5bbbb0d23ae9530992a37d0f0d1787a4.tar.xz linux-da20b58d5bbbb0d23ae9530992a37d0f0d1787a4.zip |
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 <colin.king@canonical.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Link: https://lore.kernel.org/r/20210806110601.11386-1-colin.king@canonical.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/xen-blkfront.c')
-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 d83fee21f6c5..715bfa8aca7f 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; |