diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2010-12-14 18:17:29 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2010-12-24 09:02:42 -0500 |
commit | 2cbb3ce1ad19e66858a4284dd6c4bb958162c483 (patch) | |
tree | ae1fd63072a8f57813a98c589680d1f41e08f919 /drivers/base | |
parent | d83f905e126f8cbc5e4addc5d1a64aea785b732e (diff) |
PM: Avoid compiler warning in pm_noirq_op()
The compiler complains that calltime may be uninitialized in
pm_noirq_op(), so add extra initialization for that variable to
avoid the warning.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/power/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c index fb4ca2870081..e6d628012654 100644 --- a/drivers/base/power/main.c +++ b/drivers/base/power/main.c | |||
@@ -304,7 +304,7 @@ static int pm_noirq_op(struct device *dev, | |||
304 | pm_message_t state) | 304 | pm_message_t state) |
305 | { | 305 | { |
306 | int error = 0; | 306 | int error = 0; |
307 | ktime_t calltime, delta, rettime; | 307 | ktime_t calltime = ktime_set(0, 0), delta, rettime; |
308 | 308 | ||
309 | if (initcall_debug) { | 309 | if (initcall_debug) { |
310 | pr_info("calling %s+ @ %i, parent: %s\n", | 310 | pr_info("calling %s+ @ %i, parent: %s\n", |