scsi: lpfc: Annotate switch/case fall-through
This patch avoids that the compiler warns about missing fall-through annotation when building with W=1. Cc: James Smart <james.smart@broadcom.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Acked-by: James Smart <james.smart@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:

committed by
Martin K. Petersen

parent
ffd43814d9
commit
cd05c155d7
@@ -1137,7 +1137,7 @@ lpfc_bg_err_inject(struct lpfc_hba *phba, struct scsi_cmnd *sc,
|
||||
|
||||
break;
|
||||
}
|
||||
/* Drop thru */
|
||||
/* fall through */
|
||||
case SCSI_PROT_WRITE_INSERT:
|
||||
/*
|
||||
* For WRITE_INSERT, force the error
|
||||
@@ -1256,7 +1256,7 @@ lpfc_bg_err_inject(struct lpfc_hba *phba, struct scsi_cmnd *sc,
|
||||
rc = BG_ERR_TGT | BG_ERR_CHECK;
|
||||
break;
|
||||
}
|
||||
/* Drop thru */
|
||||
/* fall through */
|
||||
case SCSI_PROT_WRITE_INSERT:
|
||||
/*
|
||||
* For WRITE_INSERT, force the
|
||||
@@ -1338,7 +1338,7 @@ lpfc_bg_err_inject(struct lpfc_hba *phba, struct scsi_cmnd *sc,
|
||||
switch (op) {
|
||||
case SCSI_PROT_WRITE_PASS:
|
||||
rc = BG_ERR_CHECK;
|
||||
/* Drop thru */
|
||||
/* fall through */
|
||||
|
||||
case SCSI_PROT_WRITE_INSERT:
|
||||
/*
|
||||
@@ -3822,7 +3822,7 @@ lpfc_scsi_cmd_iocb_cmpl(struct lpfc_hba *phba, struct lpfc_iocbq *pIocbIn,
|
||||
lpfc_cmd->cur_iocbq.sli4_lxritag,
|
||||
0, 0);
|
||||
}
|
||||
/* else: fall through */
|
||||
/* fall through */
|
||||
default:
|
||||
cmd->result = DID_ERROR << 16;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user