From patchwork Mon Mar 10 14:01:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 25969 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f69.google.com (mail-yh0-f69.google.com [209.85.213.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C343D2055F for ; Mon, 10 Mar 2014 14:02:43 +0000 (UTC) Received: by mail-yh0-f69.google.com with SMTP id b6sf1163985yha.4 for ; Mon, 10 Mar 2014 07:02:43 -0700 (PDT) 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:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=JYPcs5YTfNa9EnZ6UD0STTkhVL9mlbaRVPjQxhhKtP8=; b=l0xoQSSwecb+JR2eVpIYGSBAaxbJ+VTeWfS87XN5iuc+89KacuK4li2qORfgKxf26g 84jtdfMlMfWKHGJgySgUFrpCPVxq5eHmB0jx56ObjIKyeQth3xSN2DsGFHVtmS5VPv8u vSwDKEEfNX6tOXsABDVQV3IcLKA3SNBvZh+k6ZENlXM2dZ3kZUzd26H6Ql906IGdGYNO sP84HTpY4B6JRzp4M3OANtNpOG2AG7AKnrmBsNqXghnS7RqoFAegfchzAdlb8UGTSInu 1g4ZOx4k35tgWJY65VbSGD3ShQnLS6mCrZMMjW8Ay+LTUUEzf21ziTG+KHdkAG7nggFm ml5g== X-Gm-Message-State: ALoCoQnCp8Xk9MqFTswUsWciGXOPX0tQEt+VccY+/uGTAdFgz/rAcaczTDp7zyY0dv+UQZwU0oX1 X-Received: by 10.58.178.81 with SMTP id cw17mr1698273vec.37.1394460163356; Mon, 10 Mar 2014 07:02:43 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.86.51 with SMTP id o48ls2081595qgd.83.gmail; Mon, 10 Mar 2014 07:02:43 -0700 (PDT) X-Received: by 10.58.200.229 with SMTP id jv5mr22584087vec.15.1394460163241; Mon, 10 Mar 2014 07:02:43 -0700 (PDT) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id dq2si4741723veb.107.2014.03.10.07.02.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Mar 2014 07:02:43 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.177; Received: by mail-ve0-f177.google.com with SMTP id sa20so6954093veb.22 for ; Mon, 10 Mar 2014 07:02:43 -0700 (PDT) X-Received: by 10.52.243.167 with SMTP id wz7mr175vdc.47.1394460163145; Mon, 10 Mar 2014 07:02:43 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp120902vck; Mon, 10 Mar 2014 07:02:42 -0700 (PDT) X-Received: by 10.66.142.170 with SMTP id rx10mr40823453pab.117.1394460161382; Mon, 10 Mar 2014 07:02:41 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zt8si16885521pbc.345.2014.03.10.07.02.40; Mon, 10 Mar 2014 07:02:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753854AbaCJOCa (ORCPT + 26 others); Mon, 10 Mar 2014 10:02:30 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:35912 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753520AbaCJOC1 (ORCPT ); Mon, 10 Mar 2014 10:02:27 -0400 Received: by mail-pd0-f177.google.com with SMTP id g10so7059196pdj.22 for ; Mon, 10 Mar 2014 07:02:20 -0700 (PDT) X-Received: by 10.66.159.233 with SMTP id xf9mr40853927pab.139.1394460137352; Mon, 10 Mar 2014 07:02:17 -0700 (PDT) Received: from localhost ([122.167.84.212]) by mx.google.com with ESMTPSA id af1sm83246431pad.12.2014.03.10.07.02.14 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 10 Mar 2014 07:02:16 -0700 (PDT) From: Viresh Kumar To: rjw@rjwysocki.net Cc: linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, Viresh Kumar Subject: [PATCH Resend] PM: Remove unnecessary !! Date: Mon, 10 Mar 2014 19:31:51 +0530 Message-Id: <40f994376d56b4fa090fc2d27403c2188a4af0a4.1394460079.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.128.177 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 Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org 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);