Re: [PATCH] firmware: arm_scmi: prevent accessing rate_discrete uninitialized

From: Sudeep Holla
Date: Tue Mar 20 2018 - 12:36:40 EST


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