aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/control.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/core/control.c')
-rw-r--r--sound/core/control.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/core/control.c b/sound/core/control.c
index 6128f69..ce46a9e 100644
--- a/sound/core/control.c
+++ b/sound/core/control.c
@@ -121,8 +121,6 @@ static int snd_ctl_release(struct inode *inode, struct file *file)
unsigned int idx;
ctl = file->private_data;
- if (snd_BUG_ON(!ctl || !ctl->card))
- return -ENXIO;
file->private_data = NULL;
card = ctl->card;
write_lock_irqsave(&card->ctl_files_rwlock, flags);