summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-08-01 00:11:52 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2019-08-29 23:41:24 +0200
commit5f6b4e1e09331938a818cf8f371025ae03dee069 (patch)
tree266b1c91ca76240a37c23cc60f6cec6280af21c8 /drivers/scsi
parentscsi: lpfc: Update lpfc version to 12.4.0.0 (diff)
downloadlinux-5f6b4e1e09331938a818cf8f371025ae03dee069.tar.xz
linux-5f6b4e1e09331938a818cf8f371025ae03dee069.zip
scsi: bfa: remove redundant assignment to variable error
Variable error is being initialized with a value that is never read and error is being re-assigned a little later on. The assignment is redundant and hence can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/bfa/bfad_im.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/bfa/bfad_im.c b/drivers/scsi/bfa/bfad_im.c
index b2014cb96f58..22f06be2606f 100644
--- a/drivers/scsi/bfa/bfad_im.c
+++ b/drivers/scsi/bfa/bfad_im.c
@@ -536,7 +536,7 @@ bfad_im_scsi_host_alloc(struct bfad_s *bfad, struct bfad_im_port_s *im_port,
struct device *dev)
{
struct bfad_im_port_pointer *im_portp;
- int error = 1;
+ int error;
mutex_lock(&bfad_mutex);
error = idr_alloc(&bfad_im_port_index, im_port, 0, 0, GFP_KERNEL);