From patchwork Fri Jul 31 08:38:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 51761 Return-Path: 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 ; Fri, 31 Jul 2015 08:47:28 +0000 (UTC) Received: by laah7 with SMTP id h7sf21824787laa.2 for ; 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 (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 ; 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 + 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 ); Fri, 31 Jul 2015 04:39:35 -0400 Received: by pabkd10 with SMTP id kd10so37555248pab.2 for ; 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 To: akpm@linux-foundation.org Cc: linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, Viresh Kumar Subject: [PATCH 07/15] drivers: misc: Drop unlikely before IS_ERR(_OR_NULL) Date: Fri, 31 Jul 2015 14:08:27 +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.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: , 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; }