mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
scsi: aic94xx: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple warnings by explicitly adding a couple of break and fallthrough statements instead of just letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Link: https://lore.kernel.org/r/9b58459045d303bbea0160f2e349f5799402a2bf.1605896059.git.gustavoars@kernel.org Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
995ae10f80
commit
4886dd0a04
2 changed files with 4 additions and 0 deletions
|
@ -721,6 +721,7 @@ static void set_speed_mask(u8 *speed_mask, struct asd_phy_desc *pd)
|
|||
fallthrough;
|
||||
case SAS_LINK_RATE_3_0_GBPS:
|
||||
*speed_mask |= SAS_SPEED_15_DIS;
|
||||
fallthrough;
|
||||
default:
|
||||
case SAS_LINK_RATE_1_5_GBPS:
|
||||
/* nothing to do */
|
||||
|
@ -739,6 +740,7 @@ static void set_speed_mask(u8 *speed_mask, struct asd_phy_desc *pd)
|
|||
switch (pd->min_sata_lrate) {
|
||||
case SAS_LINK_RATE_3_0_GBPS:
|
||||
*speed_mask |= SATA_SPEED_15_DIS;
|
||||
fallthrough;
|
||||
default:
|
||||
case SAS_LINK_RATE_1_5_GBPS:
|
||||
/* nothing to do */
|
||||
|
|
|
@ -315,6 +315,7 @@ static void asd_task_tasklet_complete(struct asd_ascb *ascb,
|
|||
break;
|
||||
case SAS_PROTOCOL_SSP:
|
||||
asd_unbuild_ssp_ascb(ascb);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -609,6 +610,7 @@ int asd_execute_task(struct sas_task *task, gfp_t gfp_flags)
|
|||
break;
|
||||
case SAS_PROTOCOL_SSP:
|
||||
asd_unbuild_ssp_ascb(a);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue