scsi: libfc: remove redundant initialization of 'disc'
authorColin Ian King <colin.king@canonical.com>
Tue, 6 Feb 2018 14:21:57 +0000 (14:21 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 14 Feb 2018 02:37:01 +0000 (21:37 -0500)
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>
drivers/scsi/libfc/fc_disc.c

index 8660f92..3f3569e 100644 (file)
@@ -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;