summaryrefslogtreecommitdiffstats
path: root/ich_descriptors.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2018-12-19 12:04:30 +0000
committerNico Huber <nico.h@gmx.de>2019-02-11 23:50:12 +0000
commitdb7482bb72035fab8386226d1720cde09e0c700e (patch)
tree8a2114a45c22a44e01d8494f224b38c35b17cb71 /ich_descriptors.c
parente2cbb12f2209a0ba16bc87e31d544fd7fc47f0e2 (diff)
downloadflashrom-db7482bb72035fab8386226d1720cde09e0c700e.tar.gz
flashrom-db7482bb72035fab8386226d1720cde09e0c700e.tar.bz2
flashrom-db7482bb72035fab8386226d1720cde09e0c700e.zip
Fix several -Wno-implicit-fallthrough warnings
GCC is picky about the comment being where the break should go. Change-Id: I05db2fb34025fefe2c6ddd1274c8e45b7cc5a4b6 Signed-off-by: Richard Hughes <richard@hughsie.com> Reviewed-on: https://review.coreboot.org/c/30406 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'ich_descriptors.c')
-rw-r--r--ich_descriptors.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ich_descriptors.c b/ich_descriptors.c
index 56e846f00..944af4c06 100644
--- a/ich_descriptors.c
+++ b/ich_descriptors.c
@@ -69,6 +69,7 @@ ssize_t ich_number_of_masters(const enum ich_chipset cs, const struct ich_desc_c
case CHIPSET_C620_SERIES_LEWISBURG:
if (cont->NM <= MAX_NUM_MASTERS)
return cont->NM;
+ break;
default:
if (cont->NM < MAX_NUM_MASTERS)
return cont->NM + 1;
@@ -238,6 +239,7 @@ static const char *pprint_freq(enum ich_chipset cs, uint8_t value)
case CHIPSET_ICH10:
if (value > 1)
return "reserved";
+ /* Fall through. */
case CHIPSET_5_SERIES_IBEX_PEAK:
case CHIPSET_6_SERIES_COUGAR_POINT:
case CHIPSET_7_SERIES_PANTHER_POINT: