Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2cbb3ce1 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

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: default avatarRafael J. Wysocki <rjw@sisk.pl>
parent d83f905e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -304,7 +304,7 @@ static int pm_noirq_op(struct device *dev,
			pm_message_t state)
			pm_message_t state)
{
{
	int error = 0;
	int error = 0;
	ktime_t calltime, delta, rettime;
	ktime_t calltime = ktime_set(0, 0), delta, rettime;


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