File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments