From patchwork Mon Nov 18 15:46:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 21582 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f197.google.com (mail-ie0-f197.google.com [209.85.223.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2F48820972 for ; Mon, 18 Nov 2013 15:46:48 +0000 (UTC) Received: by mail-ie0-f197.google.com with SMTP id e14sf2785489iej.8 for ; Mon, 18 Nov 2013 07:46:48 -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=llHMoHsWN0fvm+g+4r6DN8lYx7QopbFfaGq9/W62gySMcU20F7/Ai09IjU86Z9sDHp sRwAln6HhPnP771SRoPzsOmpvk655Ac3n8AYRtLtNs2JvzYYp93LlkqQzeqGga/oJyPi H6gSMkd8vo7VBUKZJXjJSR+MAGpOG3EleF8TF0uhIVtgAq6YPTOn70dLCOtHAEaYhfe4 FWaeoIeRuY3uXAxGHp2ytjAhW7O3UvoG8ZfK7ixqZFj9XY/+Vj5VDIM5SM5vLbKpqVuD ckcX+QQfdpiBmg14lG89/2lIFXOHefp7HfF2K02GTQsdviYEoi6VxFkMhhL0/wvWYl5Q FNXw== X-Gm-Message-State: ALoCoQmxnedUpiiDueFXMyMKhKyqZ/YuCn4zdor196N0s4aDnomUfZeexhHCDAIyjKccpHJpODQS X-Received: by 10.182.104.200 with SMTP id gg8mr624019obb.45.1384789608357; Mon, 18 Nov 2013 07:46:48 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.131.162 with SMTP id on2ls232092qeb.73.gmail; Mon, 18 Nov 2013 07:46:48 -0800 (PST) X-Received: by 10.220.66.205 with SMTP id o13mr403860vci.34.1384789608246; Mon, 18 Nov 2013 07:46:48 -0800 (PST) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id c1si7402508vcs.28.2013.11.18.07.46.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Nov 2013 07:46:48 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id ht10so1113254vcb.1 for ; Mon, 18 Nov 2013 07:46:48 -0800 (PST) X-Received: by 10.52.177.166 with SMTP id cr6mr2021617vdc.26.1384789608115; Mon, 18 Nov 2013 07:46:48 -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 u4csp210740vcz; Mon, 18 Nov 2013 07:46:47 -0800 (PST) X-Received: by 10.66.27.177 with SMTP id u17mr21499591pag.25.1384789607170; Mon, 18 Nov 2013 07:46:47 -0800 (PST) Received: from mail-pb0-f52.google.com (mail-pb0-f52.google.com [209.85.160.52]) by mx.google.com with ESMTPS id tu7si9968890pab.104.2013.11.18.07.46.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Nov 2013 07:46:47 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.52 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.52; Received: by mail-pb0-f52.google.com with SMTP id uo5so444624pbc.11 for ; Mon, 18 Nov 2013 07:46:46 -0800 (PST) X-Received: by 10.66.136.176 with SMTP id qb16mr3417599pab.131.1384789606634; Mon, 18 Nov 2013 07:46:46 -0800 (PST) Received: from localhost ([122.167.133.207]) by mx.google.com with ESMTPSA id p1sm24257539pbo.12.2013.11.18.07.46.43 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 18 Nov 2013 07:46:46 -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] PM: Remove unnecessary !! Date: Mon, 18 Nov 2013 21:16:34 +0530 Message-Id: <16bb76315fce72c969e417e6dd093b6371a1f234.1384789554.git.viresh.kumar@linaro.org> 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.220.170 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);