summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2019-06-09 13:11:49 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-06-21 08:32:08 +0000
commitb53427156c8ccaa33b92a1cb73200cae11de7e58 (patch)
tree36da1f29bc0ee180f11adb62b9b52b34db233b27
parent561e11d6f872f6b6ab5fe79df0cbbf8dcd836297 (diff)
downloadcoreboot-b53427156c8ccaa33b92a1cb73200cae11de7e58.tar.xz
ec/google/chromeec/ec_lpc: Remove unneeded 'else'
'else' is not needed after a 'break' or 'return'. Change-Id: I98d0ab0d139186b312e8c1086c475ba6ef0b7d3b Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33333 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rw-r--r--src/ec/google/chromeec/ec_lpc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ec/google/chromeec/ec_lpc.c b/src/ec/google/chromeec/ec_lpc.c
index 7293cffcd3..b7d183ebb0 100644
--- a/src/ec/google/chromeec/ec_lpc.c
+++ b/src/ec/google/chromeec/ec_lpc.c
@@ -188,11 +188,9 @@ static int google_chromeec_command_version(void)
return EC_HOST_CMD_FLAG_VERSION_3;
} else if (flags & EC_HOST_CMD_FLAG_LPC_ARGS_SUPPORTED) {
return EC_HOST_CMD_FLAG_LPC_ARGS_SUPPORTED;
- } else {
- printk(BIOS_ERR,
- "Chromium EC command version unsupported\n");
- return -1;
}
+ printk(BIOS_ERR, "Chromium EC command version unsupported\n");
+ return -1;
}
static int google_chromeec_command_v3(struct chromeec_command *cec_command)