cleanup: move return to separate line
The return type of state machine functions are void, so put the return
statement on its own line.
BRANCH=none
TEST=builds
@@ -1845,7 +1845,8 @@ static void tc_attached_snk_run(const int port)
if (IS_ENABLED(CONFIG_USB_PD_ALT_MODE_DFP))
pd_dfp_exit_mode(port, 0, 0);
- return set_state_tc(port, TC_UNATTACHED_SNK);
+ set_state_tc(port, TC_UNATTACHED_SNK);
+ return;
}
if (!pe_is_explicit_contract(port))
@@ -1915,8 +1916,10 @@ static void tc_attached_snk_run(const int port)
#else /* CONFIG_USB_PE_SM */
/* Detach detection */
- if (!pd_is_vbus_present(port))
- return set_state_tc(port, TC_UNATTACHED_SNK);
+ if (!pd_is_vbus_present(port)) {
+ set_state_tc(port, TC_UNATTACHED_SNK);
+ return;
+ }
/* Run Sink Power Sub-State */
sink_power_sub_states(port);
