[PATCH] cpufreq: brcmstb-avs-cpufreq: ISO C90 forbids mixed declarations
Viresh Kumar
viresh.kumar at linaro.org
Wed Apr 24 22:07:21 PDT 2024
On 24-04-24, 15:02, Portia Stephens wrote:
> There is a compile warning because a NULL pointer check was added before
> a struct was declared. This moves the NULL pointer check to after the
> struct is delcared and moves the struct assignment to after the NULL
declared
> pointer check.
>
> Fixes: f661017e6d32 ("cpufreq: brcmstb-avs-cpufreq: add check for cpufreq_cpu_get's return value")
>
> Signed-off-by: Portia Stephens <portia.stephens at canonical.com>
> ---
> drivers/cpufreq/brcmstb-avs-cpufreq.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
Applied. Thanks.
--
viresh
More information about the linux-arm-kernel
mailing list