Commit 3642c7ed authored by Dhruva Gole's avatar Dhruva Gole Committed by Rafael J. Wysocki
Browse files

PM: wakeup: Remove unnecessary else from device_init_wakeup()



Checkpatch warns that else is generally not necessary after a return
condition which exists in the if part of this function.

Hence, just to abide by what checkpatch recommends, follow it's
guidelines.

Signed-off-by: default avatarDhruva Gole <d-gole@ti.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent afde996a
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -234,11 +234,10 @@ static inline int device_init_wakeup(struct device *dev, bool enable)
	if (enable) {
		device_set_wakeup_capable(dev, true);
		return device_wakeup_enable(dev);
	} else {
	}
	device_wakeup_disable(dev);
	device_set_wakeup_capable(dev, false);
	return 0;
}
}

#endif /* _LINUX_PM_WAKEUP_H */