]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/i2c/other/ak4117.c
ALSA: Kill snd_assert() in other places
[linux-2.6-omap-h63xx.git] / sound / i2c / other / ak4117.c
index f350835ade96cced97ae9815de8d71a09e3cf86b..2cad2d6125186431643dd9a04bcc840f729e67e4 100644 (file)
@@ -431,7 +431,8 @@ int snd_ak4117_build(struct ak4117 *ak4117, struct snd_pcm_substream *cap_substr
        unsigned int idx;
        int err;
 
-       snd_assert(cap_substream, return -EINVAL);
+       if (snd_BUG_ON(!cap_substream))
+               return -EINVAL;
        ak4117->substream = cap_substream;
        for (idx = 0; idx < AK4117_CONTROLS; idx++) {
                kctl = snd_ctl_new1(&snd_ak4117_iec958_controls[idx], ak4117);