[PATCH v3] remoteproc: remove unnecessary (void*) conversions

Dan Carpenter error27 at gmail.com
Tue Mar 28 00:40:04 PDT 2023


On Tue, Mar 28, 2023 at 09:57:49AM +0800, Yu Zhe wrote:
>  static void devm_rproc_free(struct device *dev, void *res)
>  {
> -	rproc_free(*(struct rproc **)res);
> +	rproc_free(res);

This introduces a bug.

regards,
dan carpenter




More information about the linux-arm-kernel mailing list