From patchwork Wed Jan 22 06:04:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 23475 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f197.google.com (mail-vc0-f197.google.com [209.85.220.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 15624218CB for ; Wed, 22 Jan 2014 06:04:40 +0000 (UTC) Received: by mail-vc0-f197.google.com with SMTP id hq11sf15125412vcb.8 for ; Tue, 21 Jan 2014 22:04:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=Q337mY7WRTqaF796NpqjrKI1aWELMMSr4tiyHGlu11s=; b=PX+UmxbYX45+xT38Za55gHjEpM+L+G/rjt6fxN4T9GQP0Z0S+JkeZz0XjzzZndaJGJ iAChxD2x+5HJHCnTrjetV60zKn28vYzg1OMymw1gSwT+U+8NEp0cLuCYcbMFSI5SYcta sTvUgUz9g14eVRRLnGA9qXOTBrJXYiT2zCvfdqXkBHAvEGZKoPcqpLbsEkxBM171Rn4Z lSxHWK9Oh/vk64MwmpLpjcx51lQfRb1ebEiGH2ezK9GbeuOyADmnFGFui75UM3SVqwVQ ICi++7uxpJfMcFsPE099UB5dhTOug9Oa0r1Vwi1Uj+tge2SN+0NCCSCR0qLu2j3k/sEL I74A== X-Gm-Message-State: ALoCoQn2So5kfnuLvTAtAi9LzSNR9mZWjzWdACaxrBo6x9uL+jjaE6q1dDkBr8Ga+NnhaRnsRhT7 X-Received: by 10.58.134.15 with SMTP id pg15mr9963665veb.14.1390370679290; Tue, 21 Jan 2014 22:04:39 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.109.8 with SMTP id ho8ls1019953qeb.76.gmail; Tue, 21 Jan 2014 22:04:39 -0800 (PST) X-Received: by 10.58.100.197 with SMTP id fa5mr5067218veb.24.1390370679167; Tue, 21 Jan 2014 22:04:39 -0800 (PST) Received: from mail-vb0-f49.google.com (mail-vb0-f49.google.com [209.85.212.49]) by mx.google.com with ESMTPS id k10si3831324vca.124.2014.01.21.22.04.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 Jan 2014 22:04:39 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.49 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.49; Received: by mail-vb0-f49.google.com with SMTP id x14so3971114vbb.8 for ; Tue, 21 Jan 2014 22:04:39 -0800 (PST) X-Received: by 10.58.196.211 with SMTP id io19mr16704091vec.9.1390370679095; Tue, 21 Jan 2014 22:04:39 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp163204vcz; Tue, 21 Jan 2014 22:04:38 -0800 (PST) X-Received: by 10.194.174.4 with SMTP id bo4mr385913wjc.62.1390370678058; Tue, 21 Jan 2014 22:04:38 -0800 (PST) Received: from mail-we0-f178.google.com (mail-we0-f178.google.com [74.125.82.178]) by mx.google.com with ESMTPS id ui5si5357968wjc.22.2014.01.21.22.04.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 Jan 2014 22:04:38 -0800 (PST) Received-SPF: neutral (google.com: 74.125.82.178 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=74.125.82.178; Received: by mail-we0-f178.google.com with SMTP id t60so8974970wes.9 for ; Tue, 21 Jan 2014 22:04:37 -0800 (PST) X-Received: by 10.180.86.9 with SMTP id l9mr1230312wiz.20.1390370677497; Tue, 21 Jan 2014 22:04:37 -0800 (PST) Received: from localhost ([213.122.173.131]) by mx.google.com with ESMTPSA id bj3sm12482465wjb.14.2014.01.21.22.04.34 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 21 Jan 2014 22:04:36 -0800 (PST) From: Viresh Kumar To: rjw@rjwysocki.net Cc: linaro-kernel@lists.linaro.org, patches@linaro.org, linux-kernel@vger.kernel.org, Viresh Kumar Subject: [PATCH Resend] PM: Remove unnecessary !! Date: Wed, 22 Jan 2014 11:34:31 +0530 Message-Id: X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.49 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 --- kernel/power/suspend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/power/suspend.c b/kernel/power/suspend.c index 62ee437..90b3d93 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);