From 478b292a87e3851810e4c350b0bda94ce645e895 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 27 Feb 2022 16:01:40 +0800 Subject: [PATCH] input/buttons: Remove btn_enable from btn_sample since btn_sample doesn't change the status Signed-off-by: Xiang Xiao --- drivers/input/button_upper.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/input/button_upper.c b/drivers/input/button_upper.c index 24937244e7..b2d9446e52 100644 --- a/drivers/input/button_upper.c +++ b/drivers/input/button_upper.c @@ -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); }