Skip to content

Commit 85f380f

Browse files
cristiccbroonie
authored andcommitted
ASoC: amd: acp: Drop superfluous assignment in acp_sof_probe()
The 'card' pointer is not required to be NULL initialized as it is never accessed before the related memory allocation takes place. Drop the redundant assignment. Signed-off-by: Cristian Ciocaltea <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 822ecda commit 85f380f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/amd/acp/acp-sof-mach.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ static struct acp_card_drvdata sof_nau8821_max98388_data = {
8888

8989
static int acp_sof_probe(struct platform_device *pdev)
9090
{
91-
struct snd_soc_card *card = NULL;
91+
struct snd_soc_card *card;
9292
struct device *dev = &pdev->dev;
9393
struct snd_soc_acpi_mach *mach = dev_get_platdata(&pdev->dev);
9494
const struct dmi_system_id *dmi_id;

0 commit comments

Comments
 (0)