From patchwork Fri Jul 31 08:38:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 51748 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id 81E9622A8D for ; Fri, 31 Jul 2015 08:39:28 +0000 (UTC) Received: by wixh2 with SMTP id h2sf6132774wix.0 for ; Fri, 31 Jul 2015 01:39:27 -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=OnB9pgl5JVHmchQzSvf7Mr/oGLJTkdp3sR+n2TfemQN2TcqhyVMqIMUfOZ0gforRXb 3XM9VYVgDjMvz/q33yM4E3JivIB52t9F9X1cM9ib1oPXHFc5lpxZOgZ8F1k2WmnwLCe7 mgtugTAuuG/4F7NCi1iJlF6pCMvylK5nFsAh1+PeinslB3H02VXEIYsK+anpjSsKNBTJ 5sNgKrGgf2Yl03pYwItbk9e0xhtVFKs9UYYCknD6fPF7We7PnG4QV/RDsAwCy6uYCPPB 85AlxxDHDKEMiDPjCUJySPaP8Ad4MsfhxHav4WsyNz7aZSgVpeabQhfHLbW6TbMrtUTQ PwQw== X-Gm-Message-State: ALoCoQnzRuS+SWbkKKIllAgEtZkJEqBsMo2kLUQ+c+vJNdzZVi0V4OcM+jNTtR2f5767XHqtHFDR X-Received: by 10.113.11.3 with SMTP id ee3mr576000lbd.9.1438331967804; Fri, 31 Jul 2015 01:39:27 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.206.76 with SMTP id lm12ls288655lac.109.gmail; Fri, 31 Jul 2015 01:39:27 -0700 (PDT) X-Received: by 10.152.5.36 with SMTP id p4mr1616609lap.102.1438331967555; Fri, 31 Jul 2015 01:39:27 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id ru4si2983818lbb.121.2015.07.31.01.39.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Jul 2015 01:39:27 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by laah7 with SMTP id h7so39677705laa.0 for ; Fri, 31 Jul 2015 01:39:27 -0700 (PDT) X-Received: by 10.152.9.66 with SMTP id x2mr1457710laa.76.1438331967469; Fri, 31 Jul 2015 01:39:27 -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 l6csp227219lba; Fri, 31 Jul 2015 01:39:26 -0700 (PDT) X-Received: by 10.66.218.130 with SMTP id pg2mr4440957pac.53.1438331965526; Fri, 31 Jul 2015 01:39:25 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fl3si5645007pab.16.2015.07.31.01.39.24; Fri, 31 Jul 2015 01:39:25 -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 S1752879AbbGaIjQ (ORCPT + 28 others); Fri, 31 Jul 2015 04:39:16 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:34570 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752784AbbGaIjM (ORCPT ); Fri, 31 Jul 2015 04:39:12 -0400 Received: by pacan13 with SMTP id an13so38225939pac.1 for ; Fri, 31 Jul 2015 01:39:11 -0700 (PDT) X-Received: by 10.66.65.205 with SMTP id z13mr4404410pas.65.1438331951898; Fri, 31 Jul 2015 01:39:11 -0700 (PDT) Received: from localhost ([122.171.186.190]) by smtp.gmail.com with ESMTPSA id jg7sm6321341pac.1.2015.07.31.01.39.10 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 31 Jul 2015 01:39:11 -0700 (PDT) From: Viresh Kumar To: akpm@linux-foundation.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 03/15] drivers: devfreq: Drop unlikely before IS_ERR(_OR_NULL) Date: Fri, 31 Jul 2015 14:08:23 +0530 Message-Id: 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.215.42 as permitted sender) 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: , 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); }