[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
@@ -965,7 +965,8 @@ static void snd_emu10k1_pcm_mixer_notify1(emu10k1_t *emu, snd_kcontrol_t *kctl,
|
||||
{
|
||||
snd_ctl_elem_id_t id;
|
||||
|
||||
snd_runtime_check(kctl != NULL, return);
|
||||
if (! kctl)
|
||||
return;
|
||||
if (activate)
|
||||
kctl->vd[idx].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE;
|
||||
else
|
||||
|
Reference in New Issue
Block a user