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

Commit 808c569f authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: Remove warning message for invalid OSS minor ranges



When a card instance with a higher card number is registered, warning
messages are spewed eventually with stack traces due to the invalid minor
number for OSS device registration.  For example, thinkpad-acpi registers
the card number 29 as default, and you'll see always these messages.
This is rather confusing (and worries users), thus better to return
simply the error code.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent c181a13a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -93,7 +93,7 @@ static int snd_oss_kernel_minor(int type, struct snd_card *card, int dev)
	default:
		return -EINVAL;
	}
	if (snd_BUG_ON(minor < 0 || minor >= SNDRV_OSS_MINORS))
	if (minor < 0 || minor >= SNDRV_OSS_MINORS)
		return -EINVAL;
	return minor;
}