mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Signed-off-by: Jaroslav Kysela <[email protected]>
This commit is contained in:
parent
da3cec35dd
commit
5e246b850d
38 changed files with 217 additions and 168 deletions
|
|
@ -868,7 +868,8 @@ snd_harmony_mixer_init(struct snd_harmony *h)
|
|||
struct snd_card *card = h->card;
|
||||
int idx, err;
|
||||
|
||||
snd_assert(h != NULL, return -EINVAL);
|
||||
if (snd_BUG_ON(!h))
|
||||
reutrn -EINVAL;
|
||||
strcpy(card->mixername, "Harmony Gain control interface");
|
||||
|
||||
for (idx = 0; idx < HARMONY_CONTROLS; idx++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue