summaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-dapm.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2008-10-31 14:41:06 +1100
committerTakashi Iwai <tiwai@suse.de>2008-10-31 07:32:12 +0100
commit57b41898c2ecd13a9d338b66ef23f66caab5c4e9 (patch)
tree068ac15fb6d4f8c5c9f0aabe557368bd723946a6 /sound/soc/soc-dapm.c
parent0763722d28b7b58fa1f9b83d3378efcde855b18a (diff)
downloadop-kernel-dev-57b41898c2ecd13a9d338b66ef23f66caab5c4e9.zip
op-kernel-dev-57b41898c2ecd13a9d338b66ef23f66caab5c4e9.tar.gz
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 <sfr@canb.auug.org.au> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r--sound/soc/soc-dapm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 407092c..7bf3c40 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;
OpenPOWER on IntegriCloud