[PATCH v2 1/2] soc: ti: Convert allocations to devm
Nicolas Frayer
nfrayer at baylibre.com
Wed Oct 19 10:58:37 PDT 2022
Le mer. 19 oct. 2022 à 19:50, Nicolas Frayer <nfrayer at baylibre.com> a écrit :
>
> Thanks Nishanth, I'll change this in next version.
>
> Le mar. 18 oct. 2022 à 00:15, Nishanth Menon <nm at ti.com> a écrit :
> >
> > 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
[Sorry for top posting]
Thanks Nishanth, I'll change this in next version.
More information about the linux-arm-kernel
mailing list