From: Markus Elfring Date: Wed, 23 Aug 2017 07:45:06 +0000 (+0200) Subject: ALSA: timer: Adjust a condition check in snd_timer_resolution() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dd1f7ab8a88ddc8fbb304aaca25f549e26fa8529;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ALSA: timer: Adjust a condition check in snd_timer_resolution() The script "checkpatch.pl" pointed information out like the following. ERROR: do not use assignment in if condition Thus fix the affected source code place. Signed-off-by: Markus Elfring Signed-off-by: Takashi Iwai --- diff --git a/sound/core/timer.c b/sound/core/timer.c index a9b9a277e00c..6051aed3197f 100644 --- a/sound/core/timer.c +++ b/sound/core/timer.c @@ -393,7 +393,8 @@ unsigned long snd_timer_resolution(struct snd_timer_instance *timeri) if (timeri == NULL) return 0; - if ((timer = timeri->timer) != NULL) { + timer = timeri->timer; + if (timer) { if (timer->hw.c_resolution) return timer->hw.c_resolution(timer); return timer->hw.resolution;