HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/33333
Change subject: ec/google/chromeec/ec_lpc: Remove unneeded 'else' ......................................................................
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 --- M src/ec/google/chromeec/ec_lpc.c 1 file changed, 3 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/33/33333/1
diff --git a/src/ec/google/chromeec/ec_lpc.c b/src/ec/google/chromeec/ec_lpc.c index 7293cff..f73bd1c 100644 --- a/src/ec/google/chromeec/ec_lpc.c +++ b/src/ec/google/chromeec/ec_lpc.c @@ -188,11 +188,10 @@ 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)
Vlado Cibic has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33333 )
Change subject: ec/google/chromeec/ec_lpc: Remove unneeded 'else' ......................................................................
Patch Set 1: Code-Review+1
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33333 )
Change subject: ec/google/chromeec/ec_lpc: Remove unneeded 'else' ......................................................................
Patch Set 1: Code-Review+1
(1 comment)
https://review.coreboot.org/#/c/33333/1/src/ec/google/chromeec/ec_lpc.c File src/ec/google/chromeec/ec_lpc.c:
https://review.coreboot.org/#/c/33333/1/src/ec/google/chromeec/ec_lpc.c@193 PS1, Line 193: "Chromium EC command version unsupported\n"); Does this fit in 80 lines now?
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33333 )
Change subject: ec/google/chromeec/ec_lpc: Remove unneeded 'else' ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/#/c/33333/1/src/ec/google/chromeec/ec_lpc.c File src/ec/google/chromeec/ec_lpc.c:
https://review.coreboot.org/#/c/33333/1/src/ec/google/chromeec/ec_lpc.c@193 PS1, Line 193: "Chromium EC command version unsupported\n");
Does this fit in 80 lines now?
80 characters*
Hello Angel Pons, Vlado Cibic, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/33333
to look at the new patch set (#2).
Change subject: ec/google/chromeec/ec_lpc: Remove unneeded 'else' ......................................................................
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 --- M src/ec/google/chromeec/ec_lpc.c 1 file changed, 2 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/33/33333/2
HAOUAS Elyes has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33333 )
Change subject: ec/google/chromeec/ec_lpc: Remove unneeded 'else' ......................................................................
Patch Set 2:
(1 comment)
https://review.coreboot.org/#/c/33333/1/src/ec/google/chromeec/ec_lpc.c File src/ec/google/chromeec/ec_lpc.c:
https://review.coreboot.org/#/c/33333/1/src/ec/google/chromeec/ec_lpc.c@193 PS1, Line 193: "Chromium EC command version unsupported\n");
80 characters*
Done
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33333 )
Change subject: ec/google/chromeec/ec_lpc: Remove unneeded 'else' ......................................................................
Patch Set 2: Code-Review+2
Patrick Georgi has submitted this change and it was merged. ( https://review.coreboot.org/c/coreboot/+/33333 )
Change subject: ec/google/chromeec/ec_lpc: Remove unneeded 'else' ......................................................................
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 --- M src/ec/google/chromeec/ec_lpc.c 1 file changed, 2 insertions(+), 4 deletions(-)
Approvals: build bot (Jenkins): Verified Angel Pons: Looks good to me, approved
diff --git a/src/ec/google/chromeec/ec_lpc.c b/src/ec/google/chromeec/ec_lpc.c index 7293cff..b7d183e 100644 --- a/src/ec/google/chromeec/ec_lpc.c +++ b/src/ec/google/chromeec/ec_lpc.c @@ -188,11 +188,9 @@ 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)