diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2014-03-10 15:01:51 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-03-11 01:45:21 +0100 |
commit | 7500d9363f7e356a5a3f10f1778f2e4f8a7eba94 (patch) | |
tree | 66546f23da2f0c15d504170f9440e95cda707f32 /kernel | |
parent | PCI / PM: Resume runtime-suspended devices later during system suspend (diff) | |
download | linux-7500d9363f7e356a5a3f10f1778f2e4f8a7eba94.tar.xz linux-7500d9363f7e356a5a3f10f1778f2e4f8a7eba94.zip |
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>
Diffstat (limited to 'kernel')
-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; 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); |