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

Commit 965c4ac0 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

PM / Runtime: Remove unnecessary braces in __pm_runtime_set_status()



Some braces in __pm_runtime_set_status() are not necessary, so
remove them.

Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
parent e1b1903e
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -791,12 +791,10 @@ int __pm_runtime_set_status(struct device *dev, unsigned int status)
		 */
		if (!parent->power.disable_depth
		    && !parent->power.ignore_children
		    && parent->power.runtime_status != RPM_ACTIVE) {
		    && parent->power.runtime_status != RPM_ACTIVE)
			error = -EBUSY;
		} else {
			if (dev->power.runtime_status == RPM_SUSPENDED)
		else if (dev->power.runtime_status == RPM_SUSPENDED)
			atomic_inc(&parent->power.child_count);
		}

		spin_unlock(&parent->power.lock);