[SCSI] libfc: remove tgt_flags from fc_fcp_pkt struct
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / scsi / libfc / fc_fcp.c
index a7d956ad16e374b4a3cf9b773162d146f2ca92cc..a36c652edbba3505e7480a149a5386220283a8de 100644 (file)
@@ -1150,8 +1150,9 @@ static int fc_fcp_cmd_send(struct fc_lport *lport, struct fc_fcp_pkt *fsp,
 
        setup_timer(&fsp->timer, fc_fcp_timeout, (unsigned long)fsp);
 
-       if (fsp->tgt_flags & FC_RP_FLAGS_REC_SUPPORTED)
+       if (rpriv->flags & FC_RP_FLAGS_REC_SUPPORTED)
                fc_fcp_timer_set(fsp, rec_tov);
+
 unlock:
        fc_fcp_unlock_pkt(fsp);
        return rc;
@@ -1867,8 +1868,6 @@ static int fc_queuecommand_lck(struct scsi_cmnd *sc_cmd, void (*done)(struct scs
        }
        put_cpu();
 
-       fsp->tgt_flags = rpriv->flags;
-
        init_timer(&fsp->timer);
        fsp->timer.data = (unsigned long)fsp;