From: Mikhail Malygin <m.malygin@xxxxxxxxx> Compiler output: drivers/scsi/qla2xxx/qla_target.c: In function 'qlt_schedule_sess_for_deletion': drivers/scsi/qla2xxx/qla_target.c:1227:22: warning: unused variable 'ha' [-Wunused-variable] struct qla_hw_data *ha = sess->vha->hw; Signed-off-by: Mikhail Malygin <m.malygin@xxxxxxxxx> Reported-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> --- drivers/scsi/qla2xxx/qla_target.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index 032897e22e78..0266c4d07bc9 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -1230,7 +1230,6 @@ static void qla24xx_chk_fcp_state(struct fc_port *sess) void qlt_schedule_sess_for_deletion(struct fc_port *sess) { struct qla_tgt *tgt = sess->tgt; - struct qla_hw_data *ha = sess->vha->hw; unsigned long flags; if (sess->disc_state == DSC_DELETE_PEND) -- 2.15.2