i3c: master: cdns: Fix fall-through warning for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 29 Jun 2021 13:37:04 +0000 (08:37 -0500)
committerGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 29 Jun 2021 13:37:04 +0000 (08:37 -0500)
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>
drivers/i3c/master/i3c-master-cdns.c

index 3f2226928fe052ba6a3ad213b2630d273a529570..5b37ffe5ad5beb1535a064e7b0ad5ca773274af2 100644 (file)
@@ -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;
                }