mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 07:03:03 +02:00
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 <cristian.ciocaltea@collabora.com> Link: https://patch.msgid.link/20250429-acp-sof-probe-assign-v1-1-9784f6eb7660@collabora.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
822ecdacee
commit
85f380f2b9
|
|
@ -88,7 +88,7 @@ static struct acp_card_drvdata sof_nau8821_max98388_data = {
|
|||
|
||||
static int acp_sof_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct snd_soc_card *card = NULL;
|
||||
struct snd_soc_card *card;
|
||||
struct device *dev = &pdev->dev;
|
||||
struct snd_soc_acpi_mach *mach = dev_get_platdata(&pdev->dev);
|
||||
const struct dmi_system_id *dmi_id;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user