remove unnecesary if statement, add new line at bottom

This commit is contained in:
jding 2021-10-31 00:22:01 +00:00
parent f3da13f1b4
commit 411f91dd2f

View file

@ -410,7 +410,6 @@ static void decide_hold_tap(struct active_hold_tap *hold_tap,
}
// If the hold-tap behavior is still undecided, attempt to decide it.
if (hold_tap->status == STATUS_UNDECIDED) {
switch (hold_tap->config->flavor) {
case FLAVOR_HOLD_PREFERRED:
decide_hold_preferred(hold_tap, decision_moment);
@ -419,7 +418,6 @@ static void decide_hold_tap(struct active_hold_tap *hold_tap,
case FLAVOR_TAP_PREFERRED:
decide_tap_preferred(hold_tap, decision_moment);
}
}
if (hold_tap->status == STATUS_UNDECIDED) {
return;
@ -666,5 +664,3 @@ static struct behavior_hold_tap_data behavior_hold_tap_data;
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &behavior_hold_tap_driver_api);
DT_INST_FOREACH_STATUS_OKAY(KP_INST)
#endif /* DT_HAS_COMPAT_STATUS_OKAY(DT_DRV_COMPAT) */