[ALSA] Remove snd_runtime_check() macro
Remove snd_runtime_check() macro. This macro worsens the readability of codes. They should be either normal if() or removable asserts. Also, the assert displays stack-dump, instead of only the last caller pointer. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:

committed by
Jaroslav Kysela

parent
f01cc521a2
commit
7c22f1aaa2
@@ -2893,7 +2893,8 @@ static void snd_trident_notify_pcm_change1(snd_card_t * card, snd_kcontrol_t *kc
|
||||
{
|
||||
snd_ctl_elem_id_t id;
|
||||
|
||||
snd_runtime_check(kctl != NULL, return);
|
||||
if (! kctl)
|
||||
return;
|
||||
if (activate)
|
||||
kctl->vd[num].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE;
|
||||
else
|
||||
|
Reference in New Issue
Block a user