[PATCH] cpufreq: apple: remove duplicate intializer

Viresh Kumar viresh.kumar at linaro.org
Thu Dec 15 20:55:06 PST 2022


On 15-12-22, 17:10, Eric Curtin wrote:
> On Thu, 15 Dec 2022 at 17:05, Arnd Bergmann <arnd at kernel.org> wrote:
> >
> > From: Arnd Bergmann <arnd at arndb.de>
> >
> > When -Woverride-init is enabled, gcc notices that the .attr
> > field is initialized twice:
> >
> > drivers/cpufreq/apple-soc-cpufreq.c:331:27: error: initialized field overwritten [-Werror=override-init]
> >   331 |         .attr           = apple_soc_cpufreq_hw_attr,
> >       |                           ^~~~~~~~~~~~~~~~~~~~~~~~~
> >
> > Remove the first one, since this is not actually used.
> >
> > Signed-off-by: Arnd Bergmann <arnd at arndb.de>
> 
> Reviewed-by: Eric Curtin <ecurtin at redhat.com>

Applied. Thanks.

-- 
viresh



More information about the linux-arm-kernel mailing list