Skip to content
Commit ab51e6ba authored by Augusto Mecking Caringi's avatar Augusto Mecking Caringi Committed by Rafael J. Wysocki
Browse files

PM / domains: Fix 'may be used uninitialized' build warning



This patch fixes the following gcc warning:

drivers/base/power/domain.c: In function ‘genpd_runtime_resume’:
drivers/base/power/domain.c:642:14: warning: ‘time_start’ may be used
uninitialized in this function [-Wmaybe-uninitialized]
   elapsed_ns = ktime_to_ns(ktime_sub(ktime_get(), time_start)

The same problem (in another function in this same file) was fixed in
commit d33d5a6c (avoid spurious "may be used uninitialized" warning)

Signed-off-by: default avatarAugusto Mecking Caringi <augustocaringi@gmail.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 7ce7d89f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment