Re: [PATCH v3] remoteproc: remove unnecessary (void*) conversions
From: Dan Carpenter
Date: Tue Mar 28 2023 - 03:40:17 EST
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