Skip to content

Commit

Permalink
PM / suspend: Remove unnecessary !!
Browse files Browse the repository at this point in the history
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: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
vireshk authored and javilonas committed Jun 9, 2015
1 parent ec6aa2b commit 264cebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/power/suspend.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static const struct platform_freeze_ops *freeze_ops;

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);
Expand Down

0 comments on commit 264cebf

Please sign in to comment.