Skip to contentSkip to conversation

ASoC: au1x: psc-i2s: Fix unused variable 'ret' warning

PATCH In review Axel Lin 2 participants 2 messages Sep 1, 2015 – Sep 6, 2015

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: au1x: psc-i2s: Fix unused variable 'ret' warning

Fix below build warning:
sound/soc/au1x/psc-i2s.c: In function 'au1xpsc_i2s_drvprobe':
sound/soc/au1x/psc-i2s.c:299:6: warning: unused variable 'ret' [-Wunused-variable]

---
 sound/soc/au1x/psc-i2s.c | 1 -
 1 file changed, 1 deletion(-)
sound/soc/au1x/psc-i2s.c +0 -1
index 38e853a..0bf9d62 100644
@@ -296,7 +296,6 @@ static int au1xpsc_i2s_drvprobe(struct platform_device *pdev)
 {
 	struct resource *iores, *dmares;
 	unsigned long sel;
-	int ret;
 	struct au1xpsc_audio_data *wd;
 
 	wd = devm_kzalloc(&pdev->dev, sizeof(struct au1xpsc_audio_data),
Signature · 1 line
2.1.0
Acked-by on v1 1/1
#1 lore raw
Quoted 15 lines · Axel Lin

Fix below build warning:
sound/soc/au1x/psc-i2s.c: In function 'au1xpsc_i2s_drvprobe':
sound/soc/au1x/psc-i2s.c:299:6: warning: unused variable 'ret' [-Wunused-variable]

---
 sound/soc/au1x/psc-i2s.c | 1 -
 1 file changed, 1 deletion(-)
sound/soc/au1x/psc-i2s.c +0 -0
index 38e853a..0bf9d62 100644

sound/soc/au1x/psc-i2s.c static int au1xpsc_i2s_drvprobe(struct platform_device *pdev)

Quoted 8 lines
sound/soc/au1x/psc-i2s.c +0 -2
@@ -296,7 +296,6 @@ static int au1xpsc_i2s_drvprobe(struct platform_device *pdev)
 {
        struct resource *iores, *dmares;
        unsigned long sel;
-       int ret;
        struct au1xpsc_audio_data *wd;
 
        wd = devm_kzalloc(&pdev->dev, sizeof(struct au1xpsc_audio_data),
--