libpayload: Add after an if conditional on the next line

Clang warns about this.

Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Change-Id: I8bdd45a7ef47274b0253397fa8fd9409a70d2192
Reviewed-on: https://review.coreboot.org/c/coreboot/+/77434
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin L Roth <gaumless@gmail.com>
This commit is contained in:
Arthur Heymans 2023-08-25 13:07:58 +02:00 committed by Felix Held
parent 15cb0d5527
commit c033ca0cb9
1 changed files with 16 additions and 8 deletions

View File

@ -265,14 +265,22 @@ usb_hid_process_keyboard_event(usbhid_inst_t *const inst,
modifiers = 0;
if (current->modifiers & 0x01) /* Left-Ctrl */ modifiers |= KB_MOD_CTRL;
if (current->modifiers & 0x02) /* Left-Shift */ modifiers |= KB_MOD_SHIFT;
if (current->modifiers & 0x04) /* Left-Alt */ modifiers |= KB_MOD_ALT;
if (current->modifiers & 0x08) /* Left-GUI */;
if (current->modifiers & 0x10) /* Right-Ctrl */ modifiers |= KB_MOD_CTRL;
if (current->modifiers & 0x20) /* Right-Shift */ modifiers |= KB_MOD_SHIFT;
if (current->modifiers & 0x40) /* Right-AltGr */ modifiers |= KB_MOD_ALT;
if (current->modifiers & 0x80) /* Right-GUI */;
if (current->modifiers & 0x01) /* Left-Ctrl */
modifiers |= KB_MOD_CTRL;
if (current->modifiers & 0x02) /* Left-Shift */
modifiers |= KB_MOD_SHIFT;
if (current->modifiers & 0x04) /* Left-Alt */
modifiers |= KB_MOD_ALT;
if (current->modifiers & 0x08) /* Left-GUI */
;
if (current->modifiers & 0x10) /* Right-Ctrl */
modifiers |= KB_MOD_CTRL;
if (current->modifiers & 0x20) /* Right-Shift */
modifiers |= KB_MOD_SHIFT;
if (current->modifiers & 0x40) /* Right-AltGr */
modifiers |= KB_MOD_ALT;
if (current->modifiers & 0x80) /* Right-GUI */
;
if ((current->modifiers & 0x05) && ((current->keys[0] == 0x4c) ||
(current->keys[0] == 0x63))) {