aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i3c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2021-06-29 08:37:04 -0500
committerGustavo A. R. Silva <gustavoars@kernel.org>2021-06-29 08:37:04 -0500
commitba3fea547236bfd325f4713dfb0569e150010894 (patch)
treef1e4f9953ec55b975a50a775bafcb88cc64e4cce /drivers/i3c
parentnet/mlx4: Fix fall-through warning for Clang (diff)
downloadlinux-dev-ba3fea547236bfd325f4713dfb0569e150010894.tar.xz
linux-dev-ba3fea547236bfd325f4713dfb0569e150010894.zip
i3c: master: cdns: Fix fall-through warning for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Diffstat (limited to 'drivers/i3c')
-rw-r--r--drivers/i3c/master/i3c-master-cdns.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/i3c/master/i3c-master-cdns.c b/drivers/i3c/master/i3c-master-cdns.c
index 3f2226928fe0..5b37ffe5ad5b 100644
--- a/drivers/i3c/master/i3c-master-cdns.c
+++ b/drivers/i3c/master/i3c-master-cdns.c
@@ -1379,6 +1379,8 @@ static void cnds_i3c_master_demux_ibis(struct cdns_i3c_master *master)
case IBIR_TYPE_MR:
WARN_ON(IBIR_XFER_BYTES(ibir) || (ibir & IBIR_ERROR));
+ break;
+
default:
break;
}