From aac9c4b78a79b5a914495a3199be79e51f0e1c3f Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Wed, 12 Jan 2022 00:33:29 +0800 Subject: [PATCH] input/ajoystck: Remove ajoy_enable from ajoy_sample since ajoy_sample doesn't change the status Signed-off-by: Xiang Xiao --- drivers/input/ajoystick.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/input/ajoystick.c b/drivers/input/ajoystick.c index 64ed1c52ab..443aeb7571 100644 --- a/drivers/input/ajoystick.c +++ b/drivers/input/ajoystick.c @@ -331,10 +331,6 @@ static void ajoy_sample(FAR struct ajoy_upperhalf_s *priv) } } - /* Enable/disable interrupt handling */ - - ajoy_enable(priv); - priv->au_sample = sample; leave_critical_section(flags); }