From: Peter Ujfalusi Date: Fri, 21 May 2021 09:27:59 +0000 (+0300) Subject: ASoC: SOF: pci: No need to cast second time to save the desc X-Git-Tag: accepted/tizen/unified/20230118.172025~6638^2~25^2~145 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e5eaa4e66f538b8ba4928785a62edf8ffcf7c053;p=platform%2Fkernel%2Flinux-rpi.git ASoC: SOF: pci: No need to cast second time to save the desc At the start of the function we already have the desc, no need to cast it again from pci_id->driver_data to save it to sof_pdata. Signed-off-by: Peter Ujfalusi Reviewed-by: Rander Wang Reviewed-by: Pierre-Louis Bossart Signed-off-by: Kai Vehmanen Link: https://lore.kernel.org/r/20210521092804.3721324-3-kai.vehmanen@linux.intel.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/sof/sof-pci-dev.c b/sound/soc/sof/sof-pci-dev.c index a1db973..0311946 100644 --- a/sound/soc/sof/sof-pci-dev.c +++ b/sound/soc/sof/sof-pci-dev.c @@ -138,7 +138,7 @@ int sof_pci_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) return ret; sof_pdata->name = pci_name(pci); - sof_pdata->desc = (struct sof_dev_desc *)pci_id->driver_data; + sof_pdata->desc = desc; sof_pdata->dev = dev; sof_pdata->fw_filename = desc->default_fw_filename;