input/buttons: Remove btn_enable from btn_sample

since btn_sample doesn't change the status

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-02-27 16:01:40 +08:00 committed by Xiang Xiao
parent 207249afdc
commit 478b292a87
1 changed files with 0 additions and 4 deletions

View File

@ -317,10 +317,6 @@ static void btn_sample(FAR struct btn_upperhalf_s *priv)
}
}
/* Enable/disable interrupt handling */
btn_enable(priv);
priv->bu_sample = sample;
leave_critical_section(flags);
}