ALSA: Kill snd_assert() in other places
Kill snd_assert() in other places, 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>
This commit is contained in:
committed by
Jaroslav Kysela
parent
da3cec35dd
commit
5e246b850d
@@ -475,7 +475,8 @@ int snd_ak4114_build(struct ak4114 *ak4114,
|
||||
unsigned int idx;
|
||||
int err;
|
||||
|
||||
snd_assert(cap_substream, return -EINVAL);
|
||||
if (snd_BUG_ON(!cap_substream))
|
||||
return -EINVAL;
|
||||
ak4114->playback_substream = ply_substream;
|
||||
ak4114->capture_substream = cap_substream;
|
||||
for (idx = 0; idx < AK4114_CONTROLS; idx++) {
|
||||
|
Reference in New Issue
Block a user