input/ajoystck: Remove ajoy_enable from ajoy_sample

since ajoy_sample doesn't change the status

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-01-12 00:33:29 +08:00 committed by Xiang Xiao
parent b0e6a6e081
commit aac9c4b78a

View File

@ -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);
}