]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: x86: Drop had_get_hwstate()
authorTakashi Iwai <tiwai@suse.de>
Tue, 31 Jan 2017 15:46:44 +0000 (16:46 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 3 Feb 2017 16:34:17 +0000 (17:34 +0100)
commit7b5d7e3327bb487bba6db5d8c1419a02cc771b0c
treef5e9434030e63abc015d9d90533d862b4e214f45
parent23aef14b031da8d4c85cef03c2f047d31ef29af9
ALSA: x86: Drop had_get_hwstate()

The helper function isn't clearer than the plain condition check
"if (drv_status == HDA_DRV_DISCONNECTED)".  By expanding this, the
compiler could even catch the possible uninitialized cases, so we
could fix them, too.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/x86/intel_hdmi_audio.c