Commit 8c4efe7
committed
cypress5525: Correct a compiler warning
This seems to be handling an error case incorrectly.
board/hx30/cypress5525.c: In function 'cyp5525_port_int':
board/hx30/cypress5525.c:974:9: error: this 'if' clause does not guard...
[-Werror=misleading-indentation]
974 | if (rv != EC_SUCCESS)
| ^~
board/hx30/cypress5525.c:976:17: note: ...this statement, but the latter
is misleadingly indented as if it were guarded by the 'if'
976 | print_pd_response_code(controller,
| ^~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Simon Glass <sjg@chromium.org>1 parent 38c1b38 commit 8c4efe7
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
971 | 971 | | |
972 | 972 | | |
973 | 973 | | |
974 | | - | |
| 974 | + | |
975 | 975 | | |
976 | 976 | | |
977 | 977 | | |
978 | 978 | | |
979 | 979 | | |
| 980 | + | |
980 | 981 | | |
981 | 982 | | |
982 | 983 | | |
| |||
0 commit comments