Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd1f7ab8 authored by Markus Elfring's avatar Markus Elfring Committed by Takashi Iwai
Browse files

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent c8da9be4
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -393,7 +393,8 @@ unsigned long snd_timer_resolution(struct snd_timer_instance *timeri)


	if (timeri == NULL)
	if (timeri == NULL)
		return 0;
		return 0;
	if ((timer = timeri->timer) != NULL) {
	timer = timeri->timer;
	if (timer) {
		if (timer->hw.c_resolution)
		if (timer->hw.c_resolution)
			return timer->hw.c_resolution(timer);
			return timer->hw.c_resolution(timer);
		return timer->hw.resolution;
		return timer->hw.resolution;