summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libfc
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-02-06 15:21:57 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2018-02-14 03:37:01 +0100
commitbc2e1299a828a13a44c3140a3c0a183c87872606 (patch)
tree5bc9eba8a7f895f35b83beb5557234709a12376d /drivers/scsi/libfc
parentscsi: qedf: remove redundant initialization of 'fcport' (diff)
downloadlinux-bc2e1299a828a13a44c3140a3c0a183c87872606.tar.xz
linux-bc2e1299a828a13a44c3140a3c0a183c87872606.zip
scsi: libfc: remove redundant initialization of 'disc'
Pointer disc is being intializated a value that is never read and then re-assigned the same value later on, hence the initialization is redundant and can be removed. Cleans up clang warning: drivers/scsi/libfc/fc_disc.c:734:18: warning: Value stored to 'disc' during its initialization is never read Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Johannes Thumshirn <jth@kernel.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/libfc')
-rw-r--r--drivers/scsi/libfc/fc_disc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libfc/fc_disc.c b/drivers/scsi/libfc/fc_disc.c
index 8660f923ace0..3f3569ec5ce3 100644
--- a/drivers/scsi/libfc/fc_disc.c
+++ b/drivers/scsi/libfc/fc_disc.c
@@ -731,7 +731,7 @@ static void fc_disc_stop_final(struct fc_lport *lport)
*/
void fc_disc_config(struct fc_lport *lport, void *priv)
{
- struct fc_disc *disc = &lport->disc;
+ struct fc_disc *disc;
if (!lport->tt.disc_start)
lport->tt.disc_start = fc_disc_start;