mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 11:33:36 -04:00
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 <peter.ujfalusi@linux.intel.com> Reviewed-by: Rander Wang <rander.wang@intel.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Link: https://lore.kernel.org/r/20210521092804.3721324-3-kai.vehmanen@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
fd979ec12e
commit
e5eaa4e66f
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user