[PATCH v2 1/2] soc: ti: Convert allocations to devm
Nishanth Menon
nm at ti.com
Mon Oct 17 15:15:09 PDT 2022
On 15:15-20221010, Nicolas Frayer wrote:
[...]
> +static int k3_chipinfo_remove(struct platform_device *pdev)
> +{
> + struct soc_device *soc_dev = platform_get_drvdata(pdev);
>
> -err_free_rev:
> - kfree(soc_dev_attr->revision);
> -err:
> - kfree(soc_dev_attr);
> - return ret;
> + if (soc_dev != NULL)
next-20221017 checkpatch --strict suggests if (soc_dev) ?
> + soc_device_unregister(soc_dev);
> +
> + return 0;
> }
>
--
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
More information about the linux-arm-kernel
mailing list