[PATCH] firmware: arm_scmi: prevent accessing rate_discrete uninitialized
Sudeep Holla
sudeep.holla at arm.com
Tue Mar 20 09:36:30 PDT 2018
Hi Anders,
On 16/03/18 11:44, Anders Roxell wrote:
> gcc-5.3 and earlier warns that rate_discrete maybe-uninitialized
> ../drivers/firmware/arm_scmi/clock.c:185:5: warning: 'rate_discrete'
> may be used uninitialized in this function [-Wmaybe-uninitialized]
> if (rate_discrete)
> ^
> ../drivers/firmware/arm_scmi/clock.c:128:7: note:
> 'rate_discrete' was declared here
> bool rate_discrete;
> ^
>
Thanks for the fix, applied.
--
Regards,
Sudeep
More information about the linux-arm-kernel
mailing list