diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_scsi.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_scsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c index a246410ce9df..28c6bfd3e82e 100644 --- a/drivers/scsi/lpfc/lpfc_scsi.c +++ b/drivers/scsi/lpfc/lpfc_scsi.c | |||
@@ -1574,7 +1574,7 @@ lpfc_bg_scsi_prep_dma_buf(struct lpfc_hba *phba, | |||
1574 | case LPFC_PG_TYPE_NO_DIF: | 1574 | case LPFC_PG_TYPE_NO_DIF: |
1575 | num_bde = lpfc_bg_setup_bpl(phba, scsi_cmnd, bpl, | 1575 | num_bde = lpfc_bg_setup_bpl(phba, scsi_cmnd, bpl, |
1576 | datasegcnt); | 1576 | datasegcnt); |
1577 | /* we shoud have 2 or more entries in buffer list */ | 1577 | /* we should have 2 or more entries in buffer list */ |
1578 | if (num_bde < 2) | 1578 | if (num_bde < 2) |
1579 | goto err; | 1579 | goto err; |
1580 | break; | 1580 | break; |
@@ -1611,7 +1611,7 @@ lpfc_bg_scsi_prep_dma_buf(struct lpfc_hba *phba, | |||
1611 | 1611 | ||
1612 | num_bde = lpfc_bg_setup_bpl_prot(phba, scsi_cmnd, bpl, | 1612 | num_bde = lpfc_bg_setup_bpl_prot(phba, scsi_cmnd, bpl, |
1613 | datasegcnt, protsegcnt); | 1613 | datasegcnt, protsegcnt); |
1614 | /* we shoud have 3 or more entries in buffer list */ | 1614 | /* we should have 3 or more entries in buffer list */ |
1615 | if (num_bde < 3) | 1615 | if (num_bde < 3) |
1616 | goto err; | 1616 | goto err; |
1617 | break; | 1617 | break; |