]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: qedf: Remove redundant initialization of variable rc
authorColin Ian King <colin.king@canonical.com>
Wed, 27 May 2020 11:52:42 +0000 (12:52 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 3 Jun 2020 01:44:14 +0000 (21:44 -0400)
commit9636643e2080b5e6c8fc16eb9b88915026a4ae81
treec5a7956c4458afaca6ef7f17137a04a91f55b905
parent90d065a97abb6830e250f77e4c3aed299180ac3f
scsi: qedf: Remove redundant initialization of variable rc

The variable rc is being initialized with a value that is never read and it
is being updated later with a new value.  The initialization is redundant
and can be removed.

Link: https://lore.kernel.org/r/20200527115242.172344-1-colin.king@canonical.com
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedf/qedf_fip.c