Skip to content

Commit 5b075ef

Browse files
YueHaibingmartinkpetersen
authored andcommitted
scsi: libfc: remove set but not used variable 'rpriv'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/scsi/libfc/fc_fcp.c: In function 'fc_queuecommand': drivers/scsi/libfc/fc_fcp.c:1875:30: warning: variable 'rpriv' set but not used [-Wunused-but-set-variable] Signed-off-by: YueHaibing <yuehaibing@huawei.com> Acked-by: Johannes Thumshirn <jth@kernel.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 948dff7 commit 5b075ef

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎drivers/scsi/libfc/fc_fcp.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1872,7 +1872,6 @@ int fc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *sc_cmd)
18721872
struct fc_lport *lport = shost_priv(shost);
18731873
struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device));
18741874
struct fc_fcp_pkt *fsp;
1875-
struct fc_rport_libfc_priv *rpriv;
18761875
int rval;
18771876
int rc = 0;
18781877
struct fc_stats *stats;
@@ -1894,8 +1893,6 @@ int fc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *sc_cmd)
18941893
goto out;
18951894
}
18961895

1897-
rpriv = rport->dd_data;
1898-
18991896
if (!fc_fcp_lport_queue_ready(lport)) {
19001897
if (lport->qfull) {
19011898
if (fc_fcp_can_queue_ramp_down(lport))

0 commit comments

Comments
 (0)