Message ID | f76d5e71024b521162aa1a186a4bd2a63378d9d6.1438331416.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCRIZROPVQPBBH7M5SWQKGQEG3JIL7I@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by patches.linaro.org (Postfix) with ESMTPS id 223E222A8D for <linaro@patches.linaro.org>; Fri, 31 Jul 2015 08:47:28 +0000 (UTC) Received: by laah7 with SMTP id h7sf21824787laa.2 for <linaro@patches.linaro.org>; Fri, 31 Jul 2015 01:47: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=IzgmwNB+huxnHPiPlUmMaBF02q5oh8LbHIx6YeTNk0k=; b=RB3g5mz2M/RRSxPa4+tF5Eozpapo6ZbafJm0ltoCWlV4KmYjMOQd5aGPrkWRA1hC3K RGpKtnoz0t2cig3r9LY1olK2YKyPk9X8Jyr5Xe1FlojKvWk2mhdL4G1cNUsVGy9EpfDp 8yc83Y/oPBSvWBmFKVGQGIe866Kv1qXMmk9gXpfh1yff/AxnnyBJJUJWTHZQzfuiaOok IzyaD8HO5KI1607JVmDjgECj02ELQ8PMNgdl1J5c3ToKiM3FzV84DRwDznq9ATJEb9ot iGKA8BujMn7J/5VXZ3x1bvA/e/vpLRSUyiCX3tuhucA2WxX9ckhODuxLLTZopH/tMuap v4dg== X-Gm-Message-State: ALoCoQkZPwW0fSpel2s7jHTbYSW6mgU2XIuzG7tKMFLDJ8oIZKtL/N2yrrExZrlIOyFCMRXmnwfo X-Received: by 10.180.96.137 with SMTP id ds9mr821802wib.2.1438332447065; Fri, 31 Jul 2015 01:47:27 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.103 with SMTP id l7ls290562laf.35.gmail; Fri, 31 Jul 2015 01:47:26 -0700 (PDT) X-Received: by 10.112.137.97 with SMTP id qh1mr1612390lbb.1.1438332446808; Fri, 31 Jul 2015 01:47:26 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id qo3si3002167lbb.122.2015.07.31.01.47.26 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Jul 2015 01:47:26 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by lbqc9 with SMTP id c9so16799247lbq.1 for <patchwork-forward@linaro.org>; Fri, 31 Jul 2015 01:47:26 -0700 (PDT) X-Received: by 10.152.37.228 with SMTP id b4mr1584987lak.117.1438332446561; Fri, 31 Jul 2015 01:47:26 -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 l6csp231643lba; Fri, 31 Jul 2015 01:47:24 -0700 (PDT) X-Received: by 10.70.31.130 with SMTP id a2mr4522446pdi.61.1438332443704; Fri, 31 Jul 2015 01:47:23 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cx7si8882133pad.49.2015.07.31.01.47.22; Fri, 31 Jul 2015 01:47:23 -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 S1753532AbbGaIrS (ORCPT <rfc822;matthew.hart@linaro.org> + 28 others); Fri, 31 Jul 2015 04:47:18 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:35147 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752971AbbGaIjf (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 31 Jul 2015 04:39:35 -0400 Received: by pabkd10 with SMTP id kd10so37555248pab.2 for <linux-kernel@vger.kernel.org>; Fri, 31 Jul 2015 01:39:35 -0700 (PDT) X-Received: by 10.67.7.199 with SMTP id de7mr4296601pad.107.1438331975364; Fri, 31 Jul 2015 01:39:35 -0700 (PDT) Received: from localhost ([122.171.186.190]) by smtp.gmail.com with ESMTPSA id u8sm6261848pdj.46.2015.07.31.01.39.34 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 31 Jul 2015 01:39:34 -0700 (PDT) From: Viresh Kumar <viresh.kumar@linaro.org> To: akpm@linux-foundation.org Cc: linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, Viresh Kumar <viresh.kumar@linaro.org> Subject: [PATCH 07/15] drivers: misc: Drop unlikely before IS_ERR(_OR_NULL) Date: Fri, 31 Jul 2015 14:08:27 +0530 Message-Id: <f76d5e71024b521162aa1a186a4bd2a63378d9d6.1438331416.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.4.0 In-Reply-To: <cover.1438331416.git.viresh.kumar@linaro.org> References: <cover.1438331416.git.viresh.kumar@linaro.org> In-Reply-To: <cover.1438331416.git.viresh.kumar@linaro.org> References: <cover.1438331416.git.viresh.kumar@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> 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.178 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: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
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; }
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 <viresh.kumar@linaro.org> --- drivers/misc/c2port/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)