Skip to content

Commit 2b7da56

Browse files
committed
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>
1 parent 25fb575 commit 2b7da56

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/intel/boards/sof_pcm512x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ static int sof_audio_probe(struct platform_device *pdev)
419419
static int sof_pcm512x_remove(struct platform_device *pdev)
420420
{
421421
struct snd_soc_card *card = platform_get_drvdata(pdev);
422-
struct snd_soc_component *component = NULL;
422+
struct snd_soc_component *component;
423423

424424
for_each_card_components(card, component) {
425425
if (!strcmp(component->name, pcm512x_component[0].name)) {

0 commit comments

Comments
 (0)