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

Commit e4e1a065 authored by Colin Cross's avatar Colin Cross Committed by Android Git Automerger
Browse files

am 2a2f6408: Merge "autosuspend_inited flag set even if initialization fails"

* commit '2a2f6408':
  autosuspend_inited flag set even if initialization fails
parents 34ee8252 2a2f6408
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -33,8 +33,6 @@ static int autosuspend_init(void)
        return 0;
    }

    autosuspend_inited = true;

    autosuspend_ops = autosuspend_earlysuspend_init();
    if (autosuspend_ops) {
        goto out;
@@ -56,6 +54,8 @@ static int autosuspend_init(void)
    }

out:
    autosuspend_inited = true;

    ALOGV("autosuspend initialized\n");
    return 0;
}