diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-08-08 11:12:47 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-08-13 05:46:40 -0400 |
commit | 5e246b850df563224be26f1d409cf66fd6c968df (patch) | |
tree | 970e7faf60b86cb2c489a08ca506075c398165e5 /sound/drivers/opl3/opl3_synth.c | |
parent | da3cec35dd3c31d8706db4bf379372ce70d92118 (diff) |
ALSA: Kill snd_assert() in other places
Kill snd_assert() in other places, either removed or replaced with
if () with snd_BUG_ON().
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/drivers/opl3/opl3_synth.c')
-rw-r--r-- | sound/drivers/opl3/opl3_synth.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/drivers/opl3/opl3_synth.c b/sound/drivers/opl3/opl3_synth.c index fb64c890109b..962bb9c8b9c8 100644 --- a/sound/drivers/opl3/opl3_synth.c +++ b/sound/drivers/opl3/opl3_synth.c | |||
@@ -92,7 +92,8 @@ int snd_opl3_ioctl(struct snd_hwdep * hw, struct file *file, | |||
92 | struct snd_opl3 *opl3 = hw->private_data; | 92 | struct snd_opl3 *opl3 = hw->private_data; |
93 | void __user *argp = (void __user *)arg; | 93 | void __user *argp = (void __user *)arg; |
94 | 94 | ||
95 | snd_assert(opl3 != NULL, return -EINVAL); | 95 | if (snd_BUG_ON(!opl3)) |
96 | return -EINVAL; | ||
96 | 97 | ||
97 | switch (cmd) { | 98 | switch (cmd) { |
98 | /* get information */ | 99 | /* get information */ |