From patchwork Wed Aug 12 10:29:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 52342 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by patches.linaro.org (Postfix) with ESMTPS id 82EF622ED0 for ; Wed, 12 Aug 2015 10:33:06 +0000 (UTC) Received: by labd1 with SMTP id d1sf4428024lab.0 for ; Wed, 12 Aug 2015 03:33:05 -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:in-reply-to:references :sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=mBVE5idNJf80C6zypTBQl5uW9Q+wk1irFZwlv/SFcec=; b=GmwxGs7J+BNgUA/nuGzLqLqWPv7Q6EBKA+Dv44e6LX44n4K9bY5/lMTdBX7NLYr20w o5L0YBScn97YcOWXpAngLxF7d+C3/7zzoLFVl/NMXc54xQ16KpfWFUsHaxVZ84XDmO1Q a2Bxm5VWRKguIqqnyu6lwNLgFOFMU0svbu9ECIOsnDYYrwS8uIMThPVGe+LlpdEDv/fe KIZB/NTlxSBJMxzX+DTn1Bmwn5Xk0bpl2ozholJ8iNzcMXvH+tD8bah/5sa3poEMRZo0 jfat/ci4AEe+gaLp7kA+YD6QY6ZHYqECSLlJh+Qk3PSPUufCHse8zGVrDlzkKrM+78c7 OCcA== X-Gm-Message-State: ALoCoQlDO9OC4CRUgpirrQvYTwcB1eyq/u/xMGwNuVg9qrvXOx7KTi8ie2AGRZouqzgMi+N6Jtw7 X-Received: by 10.112.26.5 with SMTP id h5mr9375755lbg.4.1439375585496; Wed, 12 Aug 2015 03:33:05 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.1.199 with SMTP id 7ls22618lao.67.gmail; Wed, 12 Aug 2015 03:33:05 -0700 (PDT) X-Received: by 10.112.77.168 with SMTP id t8mr31446436lbw.70.1439375585323; Wed, 12 Aug 2015 03:33:05 -0700 (PDT) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com. [209.85.217.169]) by mx.google.com with ESMTPS id kz1si3818860lab.19.2015.08.12.03.33.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Aug 2015 03:33:05 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by lbcbn3 with SMTP id bn3so6901438lbc.2 for ; Wed, 12 Aug 2015 03:33:05 -0700 (PDT) X-Received: by 10.152.4.163 with SMTP id l3mr31734842lal.35.1439375585172; Wed, 12 Aug 2015 03:33:05 -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.112.7.198 with SMTP id l6csp235826lba; Wed, 12 Aug 2015 03:33:04 -0700 (PDT) X-Received: by 10.68.184.197 with SMTP id ew5mr66328575pbc.145.1439375583971; Wed, 12 Aug 2015 03:33:03 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yd1si8767171pbb.194.2015.08.12.03.33.03; Wed, 12 Aug 2015 03:33:03 -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 S1755540AbbHLKc7 (ORCPT + 28 others); Wed, 12 Aug 2015 06:32:59 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:35138 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933950AbbHLKaL (ORCPT ); Wed, 12 Aug 2015 06:30:11 -0400 Received: by pacgr6 with SMTP id gr6so11891392pac.2 for ; Wed, 12 Aug 2015 03:30:10 -0700 (PDT) X-Received: by 10.68.162.195 with SMTP id yc3mr65960572pbb.161.1439375410537; Wed, 12 Aug 2015 03:30:10 -0700 (PDT) Received: from localhost ([122.171.186.190]) by smtp.gmail.com with ESMTPSA id cn8sm5929345pac.7.2015.08.12.03.30.09 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 12 Aug 2015 03:30:09 -0700 (PDT) From: Viresh Kumar To: trivial@kernel.org Cc: linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, Viresh Kumar , Kyungmin Park , linux-pm@vger.kernel.org (open list:DEVICE FREQUENCY (DEVFREQ)), MyungJoo Ham Subject: [PATCH V1 Resend 03/10] drivers: devfreq: Drop unlikely before IS_ERR(_OR_NULL) Date: Wed, 12 Aug 2015 15:59:40 +0530 Message-Id: <4fa02a2a8c4d05cd80a0bbb5344701aa39cbcbf0.1439375087.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.4.0 In-Reply-To: References: In-Reply-To: References: 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=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) smtp.mailfrom=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: , IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there is no need to do that again from its callers. Drop it. Signed-off-by: Viresh Kumar --- drivers/devfreq/devfreq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c index ca1b362d77e2..f28a1fae5691 100644 --- a/drivers/devfreq/devfreq.c +++ b/drivers/devfreq/devfreq.c @@ -53,7 +53,7 @@ static struct devfreq *find_device_devfreq(struct device *dev) { struct devfreq *tmp_devfreq; - if (unlikely(IS_ERR_OR_NULL(dev))) { + if (IS_ERR_OR_NULL(dev)) { pr_err("DEVFREQ: %s: Invalid parameters\n", __func__); return ERR_PTR(-EINVAL); } @@ -133,7 +133,7 @@ static struct devfreq_governor *find_devfreq_governor(const char *name) { struct devfreq_governor *tmp_governor; - if (unlikely(IS_ERR_OR_NULL(name))) { + if (IS_ERR_OR_NULL(name)) { pr_err("DEVFREQ: %s: Invalid parameters\n", __func__); return ERR_PTR(-EINVAL); }