mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-22 15:48:59 +00:00
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;
^
This patch fixing the warning by initialising rate_discrete and also using
goto label for the error path.
Fixes:
|
||
|---|---|---|
| .. | ||
| base.c | ||
| bus.c | ||
| clock.c | ||
| common.h | ||
| driver.c | ||
| Makefile | ||
| perf.c | ||
| power.c | ||
| scmi_pm_domain.c | ||
| sensors.c | ||