summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/rt5682-i2c.c
diff options
context:
space:
mode:
authorDouglas Anderson <dianders@chromium.org>2021-08-13 07:34:05 -0700
committerMark Brown <broonie@kernel.org>2021-08-13 16:48:44 +0100
commita1ea05723c27a6f77894a60038a7b2b12fcec9a7 (patch)
tree4e771fcfdf2b672e1ff4002106ab27aa31a9d3b6 /sound/soc/codecs/rt5682-i2c.c
parent772d44526e203c062171786e514373f129616278 (diff)
ASoC: rt5682: Remove unused variable in rt5682_i2c_remove()
In commit 772d44526e20 ("ASoC: rt5682: Properly turn off regulators if wrong device ID") I deleted code but forgot to delete a variable that's now unused. Delete it. Fixes: 772d44526e20 ("ASoC: rt5682: Properly turn off regulators if wrong device ID") Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Douglas Anderson <dianders@chromium.org> Reviewed-by: Stephen Boyd <swboyd@chromium.org> Link: https://lore.kernel.org/r/20210813073402.1.Iaa9425cfab80f5233afa78b32d02b6dc23256eb3@changeid Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5682-i2c.c')
-rw-r--r--sound/soc/codecs/rt5682-i2c.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/soc/codecs/rt5682-i2c.c b/sound/soc/codecs/rt5682-i2c.c
index e559b965a0a6..b9d5d7a0975b 100644
--- a/sound/soc/codecs/rt5682-i2c.c
+++ b/sound/soc/codecs/rt5682-i2c.c
@@ -294,8 +294,6 @@ static void rt5682_i2c_shutdown(struct i2c_client *client)
static int rt5682_i2c_remove(struct i2c_client *client)
{
- struct rt5682_priv *rt5682 = i2c_get_clientdata(client);
-
rt5682_i2c_shutdown(client);
return 0;