ALSA: Kill snd_assert() in sound/pci/*
[deliverable/linux.git] / sound / pci / hda / hda_generic.c
index 59e4389c94a4bb87b1aa85075d2d127e5ae542da..0ca30894f7c6fcf750ea46b3f009325388f7ecbb 100644 (file)
@@ -174,7 +174,8 @@ static int build_afg_tree(struct hda_codec *codec)
        int i, nodes, err;
        hda_nid_t nid;
 
-       snd_assert(spec, return -EINVAL);
+       if (snd_BUG_ON(!spec))
+               return -EINVAL;
 
        spec->def_amp_out_caps = snd_hda_param_read(codec, codec->afg, AC_PAR_AMP_OUT_CAP);
        spec->def_amp_in_caps = snd_hda_param_read(codec, codec->afg, AC_PAR_AMP_IN_CAP);
This page took 0.039332 seconds and 5 git commands to generate.