Skip to content

Commit

Permalink
PM: Avoid compiler warning in pm_noirq_op()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rafael J. Wysocki committed Dec 24, 2010
1 parent d83f905 commit 2cbb3ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/base/power/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ static int pm_noirq_op(struct device *dev,
pm_message_t state)
{
int error = 0;
ktime_t calltime, delta, rettime;
ktime_t calltime = ktime_set(0, 0), delta, rettime;

if (initcall_debug) {
pr_info("calling %s+ @ %i, parent: %s\n",
Expand Down

0 comments on commit 2cbb3ce

Please sign in to comment.