diff options
author | Felix Singer <felixsinger@posteo.net> | 2021-01-07 02:51:30 +0000 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2021-01-09 16:31:29 +0000 |
commit | fb777b5da8ea7426cf8e9af2876a724c1f067ba9 (patch) | |
tree | 566a10789c155846c1be00cf3c2c59c31696640d /src/mainboard/google | |
parent | 57ef7c37d88fa4fd8976306ea8eaf5da49dca775 (diff) |
mb/google/parrot: Replace while-loop with do-while
Fixes linter error complaining about trailing semicolon.
Change-Id: I3f74f25cb2e3edcdd509abd86d80098241c05741
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49201
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r-- | src/mainboard/google/parrot/smihandler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/google/parrot/smihandler.c b/src/mainboard/google/parrot/smihandler.c index 0a4f249731..e0192cec53 100644 --- a/src/mainboard/google/parrot/smihandler.c +++ b/src/mainboard/google/parrot/smihandler.c @@ -39,7 +39,7 @@ void mainboard_smi_gpi(u32 gpi_sts) printk(BIOS_DEBUG, "%s: %x\n", __func__, gpi_sts); if (gpi_sts & (1 << EC_SMI_GPI)) { /* Process all pending events from EC */ - while (mainboard_smi_ec() != EC_NO_EVENT); + do {} while (mainboard_smi_ec() != EC_NO_EVENT); } else if (gpi_sts & (1 << EC_LID_GPI)) { printk(BIOS_DEBUG, "LID CLOSED, SHUTDOWN\n"); |