From 79b052fca7f0f026593d3d9ddd6107100c945ee1 Mon Sep 17 00:00:00 2001 From: Eric Tang Date: Tue, 31 Jul 2018 16:12:22 -0700 Subject: [PATCH] Remove redundant conditions --- right/src/usb_report_updater.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/right/src/usb_report_updater.c b/right/src/usb_report_updater.c index e555863..7d99023 100644 --- a/right/src/usb_report_updater.c +++ b/right/src/usb_report_updater.c @@ -366,7 +366,7 @@ static void updateActiveUsbReports(void) if (action->type == KeyActionType_Keystroke && action->keystroke.secondaryRole) { // Press released secondary role key. - if (!keyState->previous && action->type == KeyActionType_Keystroke && action->keystroke.secondaryRole && secondaryRoleState == SecondaryRoleState_Released) { + if (!keyState->previous && secondaryRoleState == SecondaryRoleState_Released) { secondaryRoleState = SecondaryRoleState_Pressed; secondaryRoleSlotId = slotId; secondaryRoleKeyId = keyId;