]> Pileus Git - ~andy/linux/blobdiff - sound/drivers/opl3/opl3_synth.c
Merge branch 'topic/pcxhr' into for-linus
[~andy/linux] / sound / drivers / opl3 / opl3_synth.c
index fb64c890109bdccc743ba7054cfd472027e8b32f..6d57b6441dec53312de691a6caeb835ae2ef607d 100644 (file)
@@ -92,7 +92,8 @@ int snd_opl3_ioctl(struct snd_hwdep * hw, struct file *file,
        struct snd_opl3 *opl3 = hw->private_data;
        void __user *argp = (void __user *)arg;
 
-       snd_assert(opl3 != NULL, return -EINVAL);
+       if (snd_BUG_ON(!opl3))
+               return -EINVAL;
 
        switch (cmd) {
                /* get information */
@@ -167,7 +168,7 @@ int snd_opl3_ioctl(struct snd_hwdep * hw, struct file *file,
 
 #ifdef CONFIG_SND_DEBUG
        default:
-               snd_printk("unknown IOCTL: 0x%x\n", cmd);
+               snd_printk(KERN_WARNING "unknown IOCTL: 0x%x\n", cmd);
 #endif
        }
        return -ENOTTY;