diff mbox

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

Message ID 1441090215.22437.0.camel@ingics.com (mailing list archive)
State Accepted
Commit 921e54680aefe52f28d9ce9485edb1bfef4b92a8
Headers show

Commit Message

Axel Lin Sept. 1, 2015, 6:50 a.m. UTC
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]

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 sound/soc/au1x/psc-i2s.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Manuel Lauss Sept. 6, 2015, 9:37 a.m. UTC | #1
On Tue, Sep 1, 2015 at 8:50 AM, Axel Lin <axel.lin@ingics.com> wrote:
> 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]
>
> Reported-by: kbuild test robot <fengguang.wu@intel.com>
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
>  sound/soc/au1x/psc-i2s.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/sound/soc/au1x/psc-i2s.c b/sound/soc/au1x/psc-i2s.c
> index 38e853a..0bf9d62 100644
> --- a/sound/soc/au1x/psc-i2s.c
> +++ b/sound/soc/au1x/psc-i2s.c
> @@ -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),
> --


Acked-by: Manuel Lauss <manuel.lauss@gmail.com>
diff mbox

Patch

diff --git a/sound/soc/au1x/psc-i2s.c b/sound/soc/au1x/psc-i2s.c
index 38e853a..0bf9d62 100644
--- a/sound/soc/au1x/psc-i2s.c
+++ b/sound/soc/au1x/psc-i2s.c
@@ -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),