Skip to content
Commit 83749a2e authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Viresh Kumar
Browse files

cpufreq: apple: remove duplicate intializer



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: default avatarArnd Bergmann <arnd@arndb.de>
Reviewed-by: default avatarEric Curtin <ecurtin@redhat.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent 1b929c02
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment