1
0
Fork 0

MLK-23892: soc: imx: secvio: Fix intentionnal fall through

The function snvs_reader uses a switch case with intentionnal
fall through which is an error displayed at compilation.

This patch uses the keyword "fallthrough" to fix the issue.

Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Franck LENORMAND 2020-05-04 10:55:47 +02:00
parent 61433c781f
commit d134fcc5b6
1 changed files with 4 additions and 0 deletions

View File

@ -63,12 +63,16 @@ int snvs_reader(struct device *dev, u32 id, u32 *value, u8 mul)
switch (mul) {
case 5:
v5 = &value[4];
fallthrough;
case 4:
v4 = &value[3];
fallthrough;
case 3:
v3 = &value[2];
fallthrough;
case 2:
v2 = &value[1];
fallthrough;
case 1:
v1 = &value[0];
break;