diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-08-23 03:45:06 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-08-23 04:37:15 -0400 |
commit | dd1f7ab8a88ddc8fbb304aaca25f549e26fa8529 (patch) | |
tree | 78265f4e8b546ba395dfde608a47474104c26119 /sound/core/timer.c | |
parent | c8da9be4a75f1f63024a16b976c5be47405c13dc (diff) |
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 <elfring@users.sourceforge.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/timer.c')
-rw-r--r-- | sound/core/timer.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
393 | 393 | ||
394 | if (timeri == NULL) | 394 | if (timeri == NULL) |
395 | return 0; | 395 | return 0; |
396 | if ((timer = timeri->timer) != NULL) { | 396 | timer = timeri->timer; |
397 | if (timer) { | ||
397 | if (timer->hw.c_resolution) | 398 | if (timer->hw.c_resolution) |
398 | return timer->hw.c_resolution(timer); | 399 | return timer->hw.c_resolution(timer); |
399 | return timer->hw.resolution; | 400 | return timer->hw.resolution; |