From: Stephen Rothwell Date: Fri, 31 Oct 2008 03:41:06 +0000 (+1100) Subject: ALSA: ASoC - restore removed variable declaration X-Git-Tag: v2.6.29-rc1~590^2~11^2~147 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=57b41898c2ecd13a9d338b66ef23f66caab5c4e9;p=linux-2.6-omap-h63xx.git ALSA: ASoC - restore removed variable declaration sound/soc/soc-dapm.c: In function 'snd_soc_dapm_sys_add': sound/soc/soc-dapm.c:828: error: 'ret' undeclared (first use in this function) Signed-off-by: Stephen Rothwell Signed-off-by: Takashi Iwai --- diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 407092c226f..7bf3c409459 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -822,6 +822,8 @@ static DEVICE_ATTR(dapm_widget, 0444, dapm_widget_show, NULL); int snd_soc_dapm_sys_add(struct device *dev) { + int ret; + if (!dapm_status) return 0;