Skip to content

Commit

Permalink
ASoC: rt5682: Remove unused variable in rt5682_i2c_remove()
Browse files Browse the repository at this point in the history
commit a1ea057 upstream.

In commit 772d445 ("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: 772d445 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
dianders authored and gregkh committed Sep 15, 2021
1 parent c4f1ad3 commit 3853c0c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sound/soc/codecs/rt5682-i2c.c
Expand Up @@ -289,8 +289,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;
Expand Down

0 comments on commit 3853c0c

Please sign in to comment.