remove unnecesary if statement, add new line at bottom
This commit is contained in:
parent
f3da13f1b4
commit
411f91dd2f
1 changed files with 7 additions and 11 deletions
|
@ -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 the hold-tap behavior is still undecided, attempt to decide it.
|
||||||
if (hold_tap->status == STATUS_UNDECIDED) {
|
|
||||||
switch (hold_tap->config->flavor) {
|
switch (hold_tap->config->flavor) {
|
||||||
case FLAVOR_HOLD_PREFERRED:
|
case FLAVOR_HOLD_PREFERRED:
|
||||||
decide_hold_preferred(hold_tap, decision_moment);
|
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:
|
case FLAVOR_TAP_PREFERRED:
|
||||||
decide_tap_preferred(hold_tap, decision_moment);
|
decide_tap_preferred(hold_tap, decision_moment);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (hold_tap->status == STATUS_UNDECIDED) {
|
if (hold_tap->status == STATUS_UNDECIDED) {
|
||||||
return;
|
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);
|
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &behavior_hold_tap_driver_api);
|
||||||
|
|
||||||
DT_INST_FOREACH_STATUS_OKAY(KP_INST)
|
DT_INST_FOREACH_STATUS_OKAY(KP_INST)
|
||||||
|
|
||||||
#endif /* DT_HAS_COMPAT_STATUS_OKAY(DT_DRV_COMPAT) */
|
|
Loading…
Add table
Reference in a new issue