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)
commit79f439ea4007b94beeb8ba1e00e71f9d128b0f90
treef5e9434030e63abc015d9d90533d862b4e214f45
parentcaa2a61a702a2a391b2fb695fc245ca5b8a4ffd8
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