mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 04:31:50 +00:00
ASoC: ux500: mop500: rename shadowing variable
cppcheck warning: sound/soc/ux500/mop500.c:143:23: style: Local variable 'mop500_card' shadows outer variable [shadowVariable] struct snd_soc_card *mop500_card = platform_get_drvdata(pdev); ^ sound/soc/ux500/mop500.c:54:28: note: Shadowed declaration static struct snd_soc_card mop500_card = { ^ sound/soc/ux500/mop500.c:143:23: note: Shadow variable struct snd_soc_card *mop500_card = platform_get_drvdata(pdev); ^ Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20210326215927.936377-17-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
3d37b27fff
commit
5b920abeea
@ -140,12 +140,12 @@ static int mop500_probe(struct platform_device *pdev)
|
||||
|
||||
static int mop500_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct snd_soc_card *mop500_card = platform_get_drvdata(pdev);
|
||||
struct snd_soc_card *card = platform_get_drvdata(pdev);
|
||||
|
||||
pr_debug("%s: Enter.\n", __func__);
|
||||
|
||||
snd_soc_unregister_card(mop500_card);
|
||||
mop500_ab8500_remove(mop500_card);
|
||||
snd_soc_unregister_card(card);
|
||||
mop500_ab8500_remove(card);
|
||||
mop500_of_node_put();
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user