ALSA: x86: Check platform_data earlier
authorTakashi Iwai <tiwai@suse.de>
Tue, 31 Jan 2017 07:44:23 +0000 (08:44 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 3 Feb 2017 16:31:06 +0000 (17:31 +0100)
commit301cf8a9559bb372ab64da3781d3d93d1ce38213
tree53c04f64d4878f7c9324cc1c3c05c9d46323406b
parentc415022e487fbba19926b56b981c5474474c0465
ALSA: x86: Check platform_data earlier

Just a minor optimization; check the presence of platform_data earlier
in the probe function before actually starting allocation, which makes
the error path easier.

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