From patchwork Mon Aug 10 06:12:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 52125 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by patches.linaro.org (Postfix) with ESMTPS id 4081420539 for ; Mon, 10 Aug 2015 06:13:52 +0000 (UTC) Received: by lbcli1 with SMTP id li1sf1551314lbc.2 for ; Sun, 09 Aug 2015 23:13:51 -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=xWRPxAVnN8UP616WmtO465ttiK6xT1NUIIqNPv5jUyc=; b=BMnjE+Ce23ge+FkDJQ4PXLDPHVC0iAdlpoQpbNcLp6yue44rrdKpH30uPo/S4mZlF9 OhbIffo3speTFMFO8oIATAzpxBmpKBctfvTTi9eal1sJ3L3beIdRJG375E76hvYcp5ut zxZ/P8TLVxnrULSxGJ9dCMhTTzB8Sd/phZUkrf2pKP+axpMzPc0hMGSz0cH2Aga9fksh x5Vv/31CjHpZWIi4EjScKnIT9ORorGm3i2UrHsUSgrdwB9ujNn9yN83twBZfCQMSf2gj uxNid3wQD3UOQ0Ix2aHDZArIKAe5YnDX7rbXpjwLlOiZkj46J5HcN3aEVp+1cZDwl19i msuA== X-Gm-Message-State: ALoCoQnKO63SAKClg+tFuqWwlwwHo9tmr7cA/eIGZDQCvdOG2mj7Dmum2KWn7tHD4DziYtkbQjTp X-Received: by 10.112.142.97 with SMTP id rv1mr5737648lbb.12.1439187231221; Sun, 09 Aug 2015 23:13:51 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.204 with SMTP id ba12ls674690lab.62.gmail; Sun, 09 Aug 2015 23:13:50 -0700 (PDT) X-Received: by 10.152.87.20 with SMTP id t20mr3911036laz.80.1439187230950; Sun, 09 Aug 2015 23:13:50 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id t9si13401525laj.106.2015.08.09.23.13.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Aug 2015 23:13:50 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by lbbtg9 with SMTP id tg9so51430247lbb.1 for ; Sun, 09 Aug 2015 23:13:50 -0700 (PDT) X-Received: by 10.152.4.163 with SMTP id l3mr18998521lal.35.1439187230853; Sun, 09 Aug 2015 23:13:50 -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 l6csp1739269lba; Sun, 9 Aug 2015 23:13:49 -0700 (PDT) X-Received: by 10.66.236.70 with SMTP id us6mr41362178pac.39.1439187228914; Sun, 09 Aug 2015 23:13:48 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r11si31599933pdj.1.2015.08.09.23.13.48; Sun, 09 Aug 2015 23:13:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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 S1753043AbbHJGNq (ORCPT + 12 others); Mon, 10 Aug 2015 02:13:46 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:36027 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752657AbbHJGNq (ORCPT ); Mon, 10 Aug 2015 02:13:46 -0400 Received: by pacrr5 with SMTP id rr5so96359701pac.3 for ; Sun, 09 Aug 2015 23:13:45 -0700 (PDT) X-Received: by 10.68.218.65 with SMTP id pe1mr40728808pbc.2.1439187225800; Sun, 09 Aug 2015 23:13:45 -0700 (PDT) Received: from localhost ([223.227.137.11]) by smtp.gmail.com with ESMTPSA id oq7sm18430659pbb.31.2015.08.09.23.13.42 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 09 Aug 2015 23:13:45 -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 V1 Resend 03/11] drivers: devfreq: Drop unlikely before IS_ERR(_OR_NULL) Date: Mon, 10 Aug 2015 11:42:25 +0530 Message-Id: <403e6fde2cf56bec5294884c56920880acd4d67f.1439187003.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.4.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-pm@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.176 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); }