From: Wei Yongjun Date: Thu, 18 Oct 2012 14:49:19 +0000 (+0800) Subject: ASoC: jack: remove unused variable in snd_soc_jack_report() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=17665ca4412e796b934b7b28bf6525b2849b5fd5;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ASoC: jack: remove unused variable in snd_soc_jack_report() The variable oldstatus is initialized but never used otherwise, so remove the unused variable. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-jack.c b/sound/soc/soc-jack.c index 1ab5fe04bfcc..e41e14c9565e 100644 --- a/sound/soc/soc-jack.c +++ b/sound/soc/soc-jack.c @@ -66,7 +66,6 @@ void snd_soc_jack_report(struct snd_soc_jack *jack, int status, int mask) struct snd_soc_dapm_context *dapm; struct snd_soc_jack_pin *pin; int enable; - int oldstatus; trace_snd_soc_jack_report(jack, mask, status); @@ -78,8 +77,6 @@ void snd_soc_jack_report(struct snd_soc_jack *jack, int status, int mask) mutex_lock(&jack->mutex); - oldstatus = jack->status; - jack->status &= ~mask; jack->status |= status & mask;