From patchwork Wed Aug 12 10:29:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 52335 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 ED43422ED0 for ; Wed, 12 Aug 2015 10:30:32 +0000 (UTC) Received: by wicul11 with SMTP id ul11sf5163070wic.1 for ; Wed, 12 Aug 2015 03:30:32 -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=IzgmwNB+huxnHPiPlUmMaBF02q5oh8LbHIx6YeTNk0k=; b=LdN6fuXx6VKZR5LflzyyeOW2nhdQQnfjToU/+0pXVS1gH7HHmxbdDUkMmyMTSJTK7Q bV7Lyvlmz2Rq0lQ1U3nILGzlJSmxfqKa0KHJpPehgKdIB6T9cLN8FekZMX7M48T4FFqm N8KeiboibDHJoGY4mq8uqGTbF3pQKLXDjw8JyrFG7WJTNCNMvzx/5msLLGZuIPkrjQf9 65mS6aP0Y0MPlBLqwgcXk/ZzpBn1uTpINzRnowuUFWgcLeqze+xRTz5OqmOmnLJ6/ePE qBXRBATkBpJmrIQ89GywBGnVerCukU1gmYb0qmmIrb/+/wju0QYANqDKwKaP/yR3Jk2J gcOw== X-Gm-Message-State: ALoCoQnwnAfqgPdCv8a4YiT6bccP4KokhTUdFM+GJ3VqZCEeWxykGlcefTRNyByBjDIBtBJML32U X-Received: by 10.112.149.39 with SMTP id tx7mr5327316lbb.11.1439375432220; Wed, 12 Aug 2015 03:30:32 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.219.4 with SMTP id pk4ls26956lac.90.gmail; Wed, 12 Aug 2015 03:30:32 -0700 (PDT) X-Received: by 10.152.28.193 with SMTP id d1mr17593066lah.72.1439375432047; Wed, 12 Aug 2015 03:30:32 -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 dm4si3810335lbc.67.2015.08.12.03.30.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Aug 2015 03:30:31 -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 lbbpu9 with SMTP id pu9so6911891lbb.3 for ; Wed, 12 Aug 2015 03:30:31 -0700 (PDT) X-Received: by 10.112.131.98 with SMTP id ol2mr31749463lbb.56.1439375431881; Wed, 12 Aug 2015 03:30:31 -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 l6csp234477lba; Wed, 12 Aug 2015 03:30:30 -0700 (PDT) X-Received: by 10.66.182.161 with SMTP id ef1mr53922044pac.97.1439375429865; Wed, 12 Aug 2015 03:30:29 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i10si335120pat.138.2015.08.12.03.30.28; Wed, 12 Aug 2015 03:30:29 -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 S934261AbbHLKaU (ORCPT + 28 others); Wed, 12 Aug 2015 06:30:20 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:35221 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752090AbbHLKaR (ORCPT ); Wed, 12 Aug 2015 06:30:17 -0400 Received: by pacgr6 with SMTP id gr6so11893164pac.2 for ; Wed, 12 Aug 2015 03:30:16 -0700 (PDT) X-Received: by 10.69.3.228 with SMTP id bz4mr66937756pbd.79.1439375416794; Wed, 12 Aug 2015 03:30:16 -0700 (PDT) Received: from localhost ([122.171.186.190]) by smtp.gmail.com with ESMTPSA id gx11sm5874809pbd.82.2015.08.12.03.30.15 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 12 Aug 2015 03:30:16 -0700 (PDT) From: Viresh Kumar To: trivial@kernel.org Cc: linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, Viresh Kumar Subject: [PATCH V1 Resend 04/10] drivers: misc: Drop unlikely before IS_ERR(_OR_NULL) Date: Wed, 12 Aug 2015 15:59:41 +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.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/misc/c2port/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/c2port/core.c b/drivers/misc/c2port/core.c index 464419b36440..cc8645b5369d 100644 --- a/drivers/misc/c2port/core.c +++ b/drivers/misc/c2port/core.c @@ -926,7 +926,7 @@ struct c2port_device *c2port_device_register(char *name, c2dev->dev = device_create(c2port_class, NULL, 0, c2dev, "c2port%d", c2dev->id); - if (unlikely(IS_ERR(c2dev->dev))) { + if (IS_ERR(c2dev->dev)) { ret = PTR_ERR(c2dev->dev); goto error_device_create; }