summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2019-06-09 13:29:26 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-06-21 08:32:57 +0000
commitc166071beb95f8bcef65284b73e0a431a53e9033 (patch)
tree8dca5789c37faa9304440bbadd7be6d4a9d1b0de /src/mainboard/google
parent1ba0da17c831eb0b02b863d3a5e2df993a3962aa (diff)
downloadcoreboot-c166071beb95f8bcef65284b73e0a431a53e9033.tar.xz
mb/google/snappy: Remove unneeded 'else'
'else' is not needed after a 'break' or 'return'. Change-Id: I7b6c319a58b9f4f47de19336d18d00b73d3d3772 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33335 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Vlado Cibic Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/reef/variants/snappy/mainboard.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainboard/google/reef/variants/snappy/mainboard.c b/src/mainboard/google/reef/variants/snappy/mainboard.c
index 950a029459..b34b8e2c92 100644
--- a/src/mainboard/google/reef/variants/snappy/mainboard.c
+++ b/src/mainboard/google/reef/variants/snappy/mainboard.c
@@ -70,8 +70,8 @@ uint8_t variant_board_sku(void)
if ((ch < '0') || (ch > '9')) {
vpd_sku_num = -1;
break;
- } else
- vpd_sku_num = vpd_sku_num * 10 + (ch - '0');
+ }
+ vpd_sku_num = vpd_sku_num * 10 + (ch - '0');
}
if (vpd_sku_num != -1)