From patchwork Thu Aug 28 13:14:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 36200 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oi0-f69.google.com (mail-oi0-f69.google.com [209.85.218.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 56AD72054F for ; Thu, 28 Aug 2014 13:14:44 +0000 (UTC) Received: by mail-oi0-f69.google.com with SMTP id i138sf7094794oig.8 for ; Thu, 28 Aug 2014 06:14:44 -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:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=abOOxBD+svkJXTPyQPPyr3b4XsfHX7yGOFYrWYNqZ+c=; b=aV2Q82rJZx5r8Md2fMq8efHdCfLUdOkghxphQBSvbDMMDGlJDoI0EiPT91fgRJM8+p h/ed8ZqLM0BEsS8Y7/lN6ZhcjD+xCnhaxVEMGx23vRoWs+Z1aFi+fDlWMhlXsl1M7D7a WhZ4E1ShVk+FeCoCvxW/pm1DsquAYhUiRGgcQX2984vXEyejGvSdvyJ27Qvop+Zn92VC WSc3eag8czOFciZg5u76TpBzgb7ZxdDZRPsf/vBw03CjeXMFQVnGkA6nUruuHmSm/3c1 /RoEGcUxbVXPcor8zGyCF21cYhqzdrXwCNnqfft4tJJaqr0/gFU5wekr4umsRvWYjDnG O2Og== X-Gm-Message-State: ALoCoQl/PKAmj4PMOXl4Q1doRgCP0zzmY3r6VMlgxEY6TpEUNQOI63VuqEAAWognt6ui0e8I0ela X-Received: by 10.43.66.18 with SMTP id xo18mr2776656icb.16.1409231683951; Thu, 28 Aug 2014 06:14:43 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.106.34 with SMTP id d31ls573326qgf.93.gmail; Thu, 28 Aug 2014 06:14:43 -0700 (PDT) X-Received: by 10.52.146.17 with SMTP id sy17mr2442537vdb.29.1409231683813; Thu, 28 Aug 2014 06:14:43 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id w7si3368226vcs.17.2014.08.28.06.14.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 28 Aug 2014 06:14:43 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id lf12so748882vcb.20 for ; Thu, 28 Aug 2014 06:14:43 -0700 (PDT) X-Received: by 10.52.129.165 with SMTP id nx5mr2432010vdb.25.1409231683750; Thu, 28 Aug 2014 06:14:43 -0700 (PDT) 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.221.45.67 with SMTP id uj3csp234659vcb; Thu, 28 Aug 2014 06:14:43 -0700 (PDT) X-Received: by 10.50.82.98 with SMTP id h2mr5267642igy.26.1409231683143; Thu, 28 Aug 2014 06:14:43 -0700 (PDT) Received: from mail-ig0-f181.google.com (mail-ig0-f181.google.com [209.85.213.181]) by mx.google.com with ESMTPS id tj8si9252902igb.11.2014.08.28.06.14.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 28 Aug 2014 06:14:43 -0700 (PDT) Received-SPF: pass (google.com: domain of lee.jones@linaro.org designates 209.85.213.181 as permitted sender) client-ip=209.85.213.181; Received: by mail-ig0-f181.google.com with SMTP id h15so861241igd.8 for ; Thu, 28 Aug 2014 06:14:42 -0700 (PDT) X-Received: by 10.50.153.83 with SMTP id ve19mr8094830igb.4.1409231682925; Thu, 28 Aug 2014 06:14:42 -0700 (PDT) Received: from localhost.localdomain (host86-152-0-170.range86-152.btcentralplus.com. [86.152.0.170]) by mx.google.com with ESMTPSA id w8sm16633672igl.13.2014.08.28.06.14.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Aug 2014 06:14:42 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Lee Jones Subject: [PATCH 08/11] mfd: max77686: Remove check which is always true Date: Thu, 28 Aug 2014 14:14:14 +0100 Message-Id: <1409231657-18294-8-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1409231657-18294-1-git-send-email-lee.jones@linaro.org> References: <1409231657-18294-1-git-send-email-lee.jones@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) 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: , As 'reg' is unsigned, it can't be less than 0, so checking if it is greater than or equal to 0 will always result in a true condition. Signed-off-by: Lee Jones --- drivers/mfd/max77686.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/max77686.c b/drivers/mfd/max77686.c index 86e5523..929795e 100644 --- a/drivers/mfd/max77686.c +++ b/drivers/mfd/max77686.c @@ -52,7 +52,7 @@ static const struct mfd_cell max77802_devs[] = { static bool max77802_pmic_is_accessible_reg(struct device *dev, unsigned int reg) { - return (reg >= MAX77802_REG_DEVICE_ID && reg < MAX77802_REG_PMIC_END); + return reg < MAX77802_REG_PMIC_END; } static bool max77802_rtc_is_accessible_reg(struct device *dev,