ASoC: hdac_hdmi: check error return
authorSudip Mukherjee <[email protected]>
Tue, 1 Dec 2015 08:59:35 +0000 (14:29 +0530)
committerMark Brown <[email protected]>
Tue, 1 Dec 2015 18:44:26 +0000 (18:44 +0000)
commit3c83ac23253c6a1b6d3ebcb4bb05eabb8337c9df
tree22ca9b118574992dcf15582794891635e0623268
parent65976878ca692566ed066f4fa977de517f697c59
ASoC: hdac_hdmi: check error return

As hdac->num_nodes is unsigned we can not check if
snd_hdac_get_sub_nodes() has returned error or success. Lets have a
temporary int to check the error value.

Signed-off-by: Sudip Mukherjee <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
sound/soc/codecs/hdac_hdmi.c