mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
ASoC: Intel: sof_pcm512x: remove unnecessary init
cppcheck complains about an invalid NULL dereference but indeed there is no need to initialize a loop variable. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com> Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com> Link: https://lore.kernel.org/r/20220520211719.607543-11-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
9972773c26
commit
f057852fd3
|
|
@ -419,7 +419,7 @@ static int sof_audio_probe(struct platform_device *pdev)
|
|||
static int sof_pcm512x_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct snd_soc_card *card = platform_get_drvdata(pdev);
|
||||
struct snd_soc_component *component = NULL;
|
||||
struct snd_soc_component *component;
|
||||
|
||||
for_each_card_components(card, component) {
|
||||
if (!strcmp(component->name, pcm512x_component[0].name)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user