]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
PM / OPP: silence an uninitialized variable warning
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 16 May 2018 09:52:41 +0000 (12:52 +0300)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 16 May 2018 09:55:44 +0000 (15:25 +0530)
commit6a89e012aaf4a978d4c896f3299cfc365e4a5eb8
treee33cebfbdd08c012a4295a737b9d4b4751419e89
parent28fa4aca262ce0865d27788ebc480e643117d7ab
PM / OPP: silence an uninitialized variable warning

Smatch complains that it's possible we print "rate" in the debug output
when it hasn't been initialized.  It should be zero on that path.

Fixes: a1e8c13600bf ("PM / OPP: "opp-hz" is optional for power domains")
[ Viresh: Added the Fixes tag ]
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/of.c