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

Commit 7500d936 authored by Viresh Kumar's avatar Viresh Kumar Committed by Rafael J. Wysocki
Browse files

PM / suspend: Remove unnecessary !!



Double ! or !! are normally required to get 0 or 1 out of a expression. A
comparision always returns 0 or 1 and hence there is no need to apply double !
over it again.

Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 7cd0602d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -39,7 +39,7 @@ static const struct platform_suspend_ops *suspend_ops;


static bool need_suspend_ops(suspend_state_t state)
static bool need_suspend_ops(suspend_state_t state)
{
{
	return !!(state > PM_SUSPEND_FREEZE);
	return state > PM_SUSPEND_FREEZE;
}
}


static DECLARE_WAIT_QUEUE_HEAD(suspend_freeze_wait_head);
static DECLARE_WAIT_QUEUE_HEAD(suspend_freeze_wait_head);