Skip to content

Commit d87719c

Browse files
GustavoARSilvajarkkojs
authored andcommitted
tpm: Fix fall-through warnings 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: KSPP/linux#115 Signed-off-by: Gustavo A. R. Silva <[email protected]> Reviewed-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>
1 parent e42acf1 commit d87719c

File tree

1 file changed

+1
-0
lines changed
  • drivers/char/tpm/eventlog

1 file changed

+1
-0
lines changed

drivers/char/tpm/eventlog/tpm1.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ static int get_event_name(char *dest, struct tcpa_event *event,
210210
default:
211211
break;
212212
}
213+
break;
213214
default:
214215
break;
215216
}

0 commit comments

Comments
 (0)