Skip to content

Commit 555322f

Browse files
author
Josh Tsai
committed
Fixed coding style
Signed-off-by: Josh Tsai <josh_tsai@compal.corp-partner.google.com>
1 parent b4014c9 commit 555322f

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

board/hx30/cypress5525.c

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,8 @@ int cypd_update_power_status(int controller)
291291
int i;
292292
int rv = EC_SUCCESS;
293293
int power_stat = 0;
294-
if (board_batt_is_present() == BP_YES) {
294+
if (board_batt_is_present() == BP_YES)
295295
power_stat |= BIT(3);
296-
}
297296
if (extpower_is_present()) {
298297
power_stat |= BIT(1) + BIT(2);
299298
}
@@ -1084,14 +1083,12 @@ void cypd_handle_state(int controller)
10841083
}
10851084
/*try again in a while*/
10861085
if (delay) {
1087-
if (controller == 0 ) {
1088-
hook_call_deferred(&pd0_update_state_deferred_data, delay);
1089-
} else {
1090-
hook_call_deferred(&pd1_update_state_deferred_data, delay);
1091-
}
1092-
} else {
1086+
if (controller == 0)
1087+
hook_call_deferred(&pd0_update_state_deferred_data, delay);
1088+
else
1089+
hook_call_deferred(&pd1_update_state_deferred_data, delay);
1090+
} else
10931091
cypd_enque_evt(CYPD_EVT_STATE_CTRL_0<<controller, 0);
1094-
}
10951092
break;
10961093

10971094
case CYP5525_STATE_APP_SETUP:

0 commit comments

Comments
 (0)