Message ID | bef2e034d26db04135b98bd3008901b86165962d.1439187003.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCRIZROPVQPBBQ4CUGXAKGQEGAVYGMI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by patches.linaro.org (Postfix) with ESMTPS id 5926620539 for <linaro@patches.linaro.org>; Mon, 10 Aug 2015 06:14:28 +0000 (UTC) Received: by labth1 with SMTP id th1sf57627894lab.2 for <linaro@patches.linaro.org>; Sun, 09 Aug 2015 23:14: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=fr+tJz0vvTdoYhcPGjUlgVSC464RYE/zyk8NAHHpiaYBv2u7wsh+F3ocF37IX6rmsV WAACrLdk+Mr+3xeXCkMrt5fdZwL+YY0yhXFAgbM/umW2aSrD10/ZnKBz5M4tgpdd/DnO JewujT6VKk3ZqYwhNokXVytVQQeS0NAebUWp0NFBTuoNR4knEtgSnSKnadogtVC8ZAUM ROcK3epFxsXC9Q9tcziF5eSHMZTzPMgFLMivb692nxvNgNHelM0Du2a2zPgXzeMgX5RF TyF/NgxN6oVpm5p9cSOuS6cg6EOzF9b5LipJuVaIiv/VhNjrHJm8WBa4SxMhgTfdL70c IyFA== X-Gm-Message-State: ALoCoQloFj26nObkvwsn3H4qEUU9W5l9825/2CEhFQqHptA4rqcQ5iZ8AN+fMO0TwEF+Xjpxxiy9 X-Received: by 10.112.98.42 with SMTP id ef10mr5796909lbb.18.1439187267279; Sun, 09 Aug 2015 23:14:27 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.242.2 with SMTP id wm2ls656393lac.38.gmail; Sun, 09 Aug 2015 23:14:26 -0700 (PDT) X-Received: by 10.112.168.102 with SMTP id zv6mr18976511lbb.45.1439187266964; Sun, 09 Aug 2015 23:14:26 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id q7si13438083laq.23.2015.08.09.23.14.26 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Aug 2015 23:14:26 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by labd1 with SMTP id d1so34558658lab.1 for <patchwork-forward@linaro.org>; Sun, 09 Aug 2015 23:14:26 -0700 (PDT) X-Received: by 10.152.36.161 with SMTP id r1mr18743195laj.88.1439187266864; Sun, 09 Aug 2015 23:14: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 l6csp1739459lba; Sun, 9 Aug 2015 23:14:25 -0700 (PDT) X-Received: by 10.70.136.162 with SMTP id qb2mr40677555pdb.141.1439187265095; Sun, 09 Aug 2015 23:14:25 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fu9si31454530pdb.221.2015.08.09.23.14.24; Sun, 09 Aug 2015 23:14: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 S1753770AbbHJGOU (ORCPT <rfc822;matthew.hart@linaro.org> + 28 others); Mon, 10 Aug 2015 02:14:20 -0400 Received: from mail-pd0-f170.google.com ([209.85.192.170]:36573 "EHLO mail-pd0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753692AbbHJGOO (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 10 Aug 2015 02:14:14 -0400 Received: by pdco4 with SMTP id o4so67770330pdc.3 for <linux-kernel@vger.kernel.org>; Sun, 09 Aug 2015 23:14:14 -0700 (PDT) X-Received: by 10.70.49.104 with SMTP id t8mr6004305pdn.13.1439187254327; Sun, 09 Aug 2015 23:14:14 -0700 (PDT) Received: from localhost ([223.227.137.11]) by smtp.gmail.com with ESMTPSA id v10sm18440116pbs.19.2015.08.09.23.14.12 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 09 Aug 2015 23:14:13 -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 V1 Resend 05/11] drivers: misc: Drop unlikely before IS_ERR(_OR_NULL) Date: Mon, 10 Aug 2015 11:42:27 +0530 Message-Id: <bef2e034d26db04135b98bd3008901b86165962d.1439187003.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.4.0 In-Reply-To: <cover.1439187003.git.viresh.kumar@linaro.org> References: <cover.1439187003.git.viresh.kumar@linaro.org> In-Reply-To: <cover.1439187003.git.viresh.kumar@linaro.org> References: <cover.1439187003.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.215.49 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(-)