diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2014-03-10 10:01:51 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-03-10 20:45:21 -0400 |
commit | 7500d9363f7e356a5a3f10f1778f2e4f8a7eba94 (patch) | |
tree | 66546f23da2f0c15d504170f9440e95cda707f32 | |
parent | 7cd0602d7836c0056fe9bdab014d5ac5ec5cb291 (diff) |
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: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | kernel/power/suspend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/power/suspend.c b/kernel/power/suspend.c index 62ee437b5c7e..90b3d9366d1a 100644 --- a/kernel/power/suspend.c +++ b/kernel/power/suspend.c | |||
@@ -39,7 +39,7 @@ static const struct platform_suspend_ops *suspend_ops; | |||
39 | 39 | ||
40 | static bool need_suspend_ops(suspend_state_t state) | 40 | static bool need_suspend_ops(suspend_state_t state) |
41 | { | 41 | { |
42 | return !!(state > PM_SUSPEND_FREEZE); | 42 | return state > PM_SUSPEND_FREEZE; |
43 | } | 43 | } |
44 | 44 | ||
45 | static DECLARE_WAIT_QUEUE_HEAD(suspend_freeze_wait_head); | 45 | static DECLARE_WAIT_QUEUE_HEAD(suspend_freeze_wait_head); |