@@ -109,8 +109,6 @@ lpfc_sli4_set_rsp_sgl_last(struct lpfc_hba *phba,
109
109
}
110
110
}
111
111
112
- #define LPFC_INVALID_REFTAG ((u32)-1)
113
-
114
112
/**
115
113
* lpfc_rampdown_queue_depth - Post RAMP_DOWN_QUEUE event to worker thread
116
114
* @phba: The Hba for which this call is being executed.
@@ -978,8 +976,6 @@ lpfc_bg_err_inject(struct lpfc_hba *phba, struct scsi_cmnd *sc,
978
976
979
977
sgpe = scsi_prot_sglist (sc );
980
978
lba = scsi_prot_ref_tag (sc );
981
- if (lba == LPFC_INVALID_REFTAG )
982
- return 0 ;
983
979
984
980
/* First check if we need to match the LBA */
985
981
if (phba -> lpfc_injerr_lba != LPFC_INJERR_LBA_OFF ) {
@@ -1560,8 +1556,6 @@ lpfc_bg_setup_bpl(struct lpfc_hba *phba, struct scsi_cmnd *sc,
1560
1556
1561
1557
/* extract some info from the scsi command for pde*/
1562
1558
reftag = scsi_prot_ref_tag (sc );
1563
- if (reftag == LPFC_INVALID_REFTAG )
1564
- goto out ;
1565
1559
1566
1560
#ifdef CONFIG_SCSI_LPFC_DEBUG_FS
1567
1561
rc = lpfc_bg_err_inject (phba , sc , & reftag , NULL , 1 );
@@ -1723,8 +1717,6 @@ lpfc_bg_setup_bpl_prot(struct lpfc_hba *phba, struct scsi_cmnd *sc,
1723
1717
/* extract some info from the scsi command */
1724
1718
blksize = scsi_prot_interval (sc );
1725
1719
reftag = scsi_prot_ref_tag (sc );
1726
- if (reftag == LPFC_INVALID_REFTAG )
1727
- goto out ;
1728
1720
1729
1721
#ifdef CONFIG_SCSI_LPFC_DEBUG_FS
1730
1722
rc = lpfc_bg_err_inject (phba , sc , & reftag , NULL , 1 );
@@ -1953,8 +1945,6 @@ lpfc_bg_setup_sgl(struct lpfc_hba *phba, struct scsi_cmnd *sc,
1953
1945
1954
1946
/* extract some info from the scsi command for pde*/
1955
1947
reftag = scsi_prot_ref_tag (sc );
1956
- if (reftag == LPFC_INVALID_REFTAG )
1957
- goto out ;
1958
1948
1959
1949
#ifdef CONFIG_SCSI_LPFC_DEBUG_FS
1960
1950
rc = lpfc_bg_err_inject (phba , sc , & reftag , NULL , 1 );
@@ -2154,8 +2144,6 @@ lpfc_bg_setup_sgl_prot(struct lpfc_hba *phba, struct scsi_cmnd *sc,
2154
2144
/* extract some info from the scsi command */
2155
2145
blksize = scsi_prot_interval (sc );
2156
2146
reftag = scsi_prot_ref_tag (sc );
2157
- if (reftag == LPFC_INVALID_REFTAG )
2158
- goto out ;
2159
2147
2160
2148
#ifdef CONFIG_SCSI_LPFC_DEBUG_FS
2161
2149
rc = lpfc_bg_err_inject (phba , sc , & reftag , NULL , 1 );
@@ -2746,8 +2734,6 @@ lpfc_calc_bg_err(struct lpfc_hba *phba, struct lpfc_io_buf *lpfc_cmd)
2746
2734
2747
2735
src = (struct scsi_dif_tuple * )sg_virt (sgpe );
2748
2736
start_ref_tag = scsi_prot_ref_tag (cmd );
2749
- if (start_ref_tag == LPFC_INVALID_REFTAG )
2750
- goto out ;
2751
2737
start_app_tag = src -> app_tag ;
2752
2738
len = sgpe -> length ;
2753
2739
while (src && protsegcnt ) {
@@ -3493,11 +3479,11 @@ lpfc_bg_scsi_prep_dma_buf_s4(struct lpfc_hba *phba,
3493
3479
scsi_cmnd -> sc_data_direction );
3494
3480
3495
3481
lpfc_printf_log (phba , KERN_ERR , LOG_TRACE_EVENT ,
3496
- "9084 Cannot setup S/G List for HBA"
3497
- "IO segs %d/%d SGL %d SCSI %d: %d %d\n" ,
3482
+ "9084 Cannot setup S/G List for HBA "
3483
+ "IO segs %d/%d SGL %d SCSI %d: %d %d %d \n" ,
3498
3484
lpfc_cmd -> seg_cnt , lpfc_cmd -> prot_seg_cnt ,
3499
3485
phba -> cfg_total_seg_cnt , phba -> cfg_sg_seg_cnt ,
3500
- prot_group_type , num_sge );
3486
+ prot_group_type , num_sge , ret );
3501
3487
3502
3488
lpfc_cmd -> seg_cnt = 0 ;
3503
3489
lpfc_cmd -> prot_seg_cnt = 0 ;
0 commit comments