Skip to content

Commit

Permalink
ASoC: SOF: pci: No need to cast second time to save the desc
Browse files Browse the repository at this point in the history
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: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
  • Loading branch information
ujfalusi authored and kv2019i committed May 12, 2021
1 parent 2ac4d9e commit ef59c5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/sof/sof-pci-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ef59c5e

Please sign in to comment.