From patchwork Thu Dec 9 14:48:46 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Klauser X-Patchwork-Id: 74901 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-fx0-f56.google.com (mail-fx0-f56.google.com [209.85.161.56]) by ozlabs.org (Postfix) with ESMTP id C971EB6F1E for ; Fri, 10 Dec 2010 01:48:50 +1100 (EST) Received: by fxm3 with SMTP id 3sf648044fxm.11 for ; Thu, 09 Dec 2010 06:48:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:mime-version:x-beenthere:received :received:received:received:received-spf:received:received:from:to :cc:subject:date:message-id:x-mailer:x-pmx-version:x-perlmx-spam :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :sender:list-subscribe:list-unsubscribe:content-type; bh=+le2BqGeb38+bJNz+kGBWgDt81snlQpoRWs6OOM5RUs=; b=H1KUXSI30/iAVmz3HW8++ldNHFky8lyJgxmzjG1cG37DUJNL/IUzlO3SOK5HrOEBBC /gsACjfzSoz1xeM26t4xhvc4T0eJ+cdzl/qEyo9XKIxnBsZBkhGIU7Bvwz3Lv9ds1R0s AJmM8FmT7PJDhka1+7YG03JLl95LwphOkWK7o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=mime-version:x-beenthere:received-spf:from:to:cc:subject:date :message-id:x-mailer:x-pmx-version:x-perlmx-spam:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; b=1BNMimReHqQ3Imzp0Cr9tyalKsgzrRXsSoq8aNL7DqpXEmezwhFfhrfZvKf9H9Ph0s EW5Q1ltg0OI+VMpL6X6Fz6TKYRGDKsiENt8VtTyfC5+LKyDf4cNkWOIEnEv+26BuFVnF bEINBV1rvlchPcNY/6eVrgXgdpGjue6AKMEsw= Received: by 10.223.86.79 with SMTP id r15mr670238fal.33.1291906128729; Thu, 09 Dec 2010 06:48:48 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.204.32.79 with SMTP id b15ls1009556bkd.0.p; Thu, 09 Dec 2010 06:48:48 -0800 (PST) Received: by 10.204.11.1 with SMTP id r1mr371911bkr.5.1291906127889; Thu, 09 Dec 2010 06:48:47 -0800 (PST) Received: by 10.204.11.1 with SMTP id r1mr371910bkr.5.1291906127852; Thu, 09 Dec 2010 06:48:47 -0800 (PST) Received: from mx1.zhaw.ch (mx1.zhaw.ch [160.85.104.50]) by gmr-mx.google.com with ESMTP id j16si339949bkd.6.2010.12.09.06.48.47; Thu, 09 Dec 2010 06:48:47 -0800 (PST) Received-SPF: neutral (google.com: 160.85.104.50 is neither permitted nor denied by best guess record for domain of tklauser@distanz.ch) client-ip=160.85.104.50; Received: from mx1.zhaw.ch (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 7282B4DD; Thu, 9 Dec 2010 15:45:46 +0100 (CET) Received: from localhost.localdomain (inst-232.223.zhaw.ch [160.85.232.223]) by mx1.zhaw.ch (Postfix) with ESMTP id DFC8C3E9; Thu, 9 Dec 2010 15:45:45 +0100 (CET) From: Tobias Klauser To: Mike Frysinger , Alessandro Zummo Cc: uclinux-dist-devel@blackfin.uclinux.org, rtc-linux@googlegroups.com, kernel-janitors@vger.kernel.org Subject: [rtc-linux] [PATCH] rtc-bfin: Remove redundant unlikely() Date: Thu, 9 Dec 2010 15:48:46 +0100 Message-Id: <1291906126-475-1-git-send-email-tklauser@distanz.ch> X-Mailer: git-send-email 1.7.0.4 X-PMX-Version: 5.5.9.395186, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2010.12.9.144214 X-PerlMx-Spam: Gauge=IIIIIIII, Probability=8%, Report=' BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1000_LESS 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, BODY_SIZE_700_799 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __MIME_TEXT_ONLY 0, __SANE_MSGID 0, __TO_MALFORMED_2 0, __URI_NO_PATH 0, __URI_NO_WWW 0, __URI_NS ' X-Original-Sender: tklauser@distanz.ch X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 160.85.104.50 is neither permitted nor denied by best guess record for domain of tklauser@distanz.ch) smtp.mail=tklauser@distanz.ch Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , IS_ERR() already implies unlikely(), so it can be omitted here. Signed-off-by: Tobias Klauser Acked-by: Mike Frysinger --- drivers/rtc/rtc-bfin.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/rtc/rtc-bfin.c b/drivers/rtc/rtc-bfin.c index b4b6087..4ba3e33 100644 --- a/drivers/rtc/rtc-bfin.c +++ b/drivers/rtc/rtc-bfin.c @@ -383,7 +383,7 @@ static int __devinit bfin_rtc_probe(struct platform_device *pdev) /* Register our RTC with the RTC framework */ rtc->rtc_dev = rtc_device_register(pdev->name, dev, &bfin_rtc_ops, THIS_MODULE); - if (unlikely(IS_ERR(rtc->rtc_dev))) { + if (IS_ERR(rtc->rtc_dev)) { ret = PTR_ERR(rtc->rtc_dev); goto err; }