Commit 5012f9d8 authored by Linus Walleij's avatar Linus Walleij Committed by Mark Brown

ASoC: wm1250-ev1: Fix uninitialized ret

The GPIO descriptor conversion patch left an unitialized ret behind
by mistake, fix it by getting rid of the variable altogether.

Fixes: 10a366f3 ("ASoC: wm1250-ev1: Convert to GPIO descriptors")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202312090953.DiUo3mue-lkp@intel.com/Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20231209-descriptors-sound-wlf-v1-1-5b885ce43ae1@linaro.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 885f68fe
......@@ -129,7 +129,6 @@ static int wm1250_ev1_pdata(struct i2c_client *i2c)
{
struct wm1250_ev1_pdata *pdata = dev_get_platdata(&i2c->dev);
struct wm1250_priv *wm1250;
int ret;
if (!pdata)
return 0;
......@@ -165,7 +164,7 @@ static int wm1250_ev1_pdata(struct i2c_client *i2c)
dev_set_drvdata(&i2c->dev, wm1250);
return ret;
return 0;
}
static int wm1250_ev1_probe(struct i2c_client *i2c)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment