Commit db69bcf9 authored by Guennadi Liakhovetski's avatar Guennadi Liakhovetski Committed by Mark Brown

ASoC: SOF: remove several superfluous type-casts

No need to type-cast assignments between void and other pointers in C.
Signed-off-by: default avatarGuennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: default avatarBard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: default avatarKai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20200917105633.2579047-7-kai.vehmanen@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent b9f8e138
...@@ -485,13 +485,13 @@ EXPORT_SYMBOL(sof_machine_check); ...@@ -485,13 +485,13 @@ EXPORT_SYMBOL(sof_machine_check);
int sof_machine_register(struct snd_sof_dev *sdev, void *pdata) int sof_machine_register(struct snd_sof_dev *sdev, void *pdata)
{ {
struct snd_sof_pdata *plat_data = (struct snd_sof_pdata *)pdata; struct snd_sof_pdata *plat_data = pdata;
const char *drv_name; const char *drv_name;
const void *mach; const void *mach;
int size; int size;
drv_name = plat_data->machine->drv_name; drv_name = plat_data->machine->drv_name;
mach = (const void *)plat_data->machine; mach = plat_data->machine;
size = sizeof(*plat_data->machine); size = sizeof(*plat_data->machine);
/* register machine driver, pass machine info as pdata */ /* register machine driver, pass machine info as pdata */
...@@ -510,7 +510,7 @@ EXPORT_SYMBOL(sof_machine_register); ...@@ -510,7 +510,7 @@ EXPORT_SYMBOL(sof_machine_register);
void sof_machine_unregister(struct snd_sof_dev *sdev, void *pdata) void sof_machine_unregister(struct snd_sof_dev *sdev, void *pdata)
{ {
struct snd_sof_pdata *plat_data = (struct snd_sof_pdata *)pdata; struct snd_sof_pdata *plat_data = pdata;
if (!IS_ERR_OR_NULL(plat_data->pdev_mach)) if (!IS_ERR_OR_NULL(plat_data->pdev_mach))
platform_device_unregister(plat_data->pdev_mach); platform_device_unregister(plat_data->pdev_mach);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment