diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-08-08 11:09:09 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-08-13 05:46:35 -0400 |
commit | 7eaa943c8ed8e91e05d0f5d0dc7a18e3319b45cf (patch) | |
tree | 51d86a4cb01cf5735b18c36ca62471f8c759a041 /sound/core/control_compat.c | |
parent | 5ef03460a6ffc1d3ee6b6f2abc6765d3e224cf89 (diff) |
ALSA: Kill snd_assert() in sound/core/*
Kill snd_assert() in sound/core/*, 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/core/control_compat.c')
-rw-r--r-- | sound/core/control_compat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/core/control_compat.c b/sound/core/control_compat.c index 6101259ad860..368dc9c4aef8 100644 --- a/sound/core/control_compat.c +++ b/sound/core/control_compat.c | |||
@@ -398,7 +398,8 @@ static inline long snd_ctl_ioctl_compat(struct file *file, unsigned int cmd, uns | |||
398 | int err; | 398 | int err; |
399 | 399 | ||
400 | ctl = file->private_data; | 400 | ctl = file->private_data; |
401 | snd_assert(ctl && ctl->card, return -ENXIO); | 401 | if (snd_BUG_ON(!ctl || !ctl->card)) |
402 | return -ENXIO; | ||
402 | 403 | ||
403 | switch (cmd) { | 404 | switch (cmd) { |
404 | case SNDRV_CTL_IOCTL_PVERSION: | 405 | case SNDRV_CTL_IOCTL_PVERSION: |