Re: [PATCH] xen-blkfront: Remove redundant assignment to variable err

2021-08-09 Thread Jens Axboe
On 8/6/21 5:06 AM, Colin King wrote:
> From: Colin Ian King 
> 
> The variable err is being assigned a value that is never read, the
> assignment is redundant and can be removed.

Added for 5.15, thanks.

-- 
Jens Axboe




Re: [PATCH] xen-blkfront: Remove redundant assignment to variable err

2021-08-09 Thread Boris Ostrovsky


On 8/6/21 7:06 AM, Colin King wrote:
> From: Colin Ian King 
>
> 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 


Reviewed-by: Boris Ostrovsky 




[PATCH] xen-blkfront: Remove redundant assignment to variable err

2021-08-06 Thread Colin King
From: Colin Ian King 

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 
---
 drivers/block/xen-blkfront.c | 1 -
 1 file changed, 1 deletion(-)

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(>tag_set, 0, sizeof(info->tag_set));
info->tag_set.ops = _mq_ops;
-- 
2.31.1