From patchwork Tue Oct 6 13:21:40 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roel Kluin X-Patchwork-Id: 51923 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n96DI9mM000766 for ; Tue, 6 Oct 2009 13:18:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932293AbZJFNNd (ORCPT ); Tue, 6 Oct 2009 09:13:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932266AbZJFNNd (ORCPT ); Tue, 6 Oct 2009 09:13:33 -0400 Received: from mail-ew0-f217.google.com ([209.85.219.217]:50027 "EHLO mail-ew0-f217.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932265AbZJFNNd (ORCPT ); Tue, 6 Oct 2009 09:13:33 -0400 Received: by ewy17 with SMTP id 17so3873178ewy.39 for ; Tue, 06 Oct 2009 06:12:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=9dVTEyYLK2ZUAEeu0CiBPps4wBRIQHKla+d53BNrKPw=; b=DxpaLveVDsTnnzUg5tPO5Pd2pRUAfdNj71i/0Z8MVPM7luQF4s4+KllETjktGhJ3f8 iprujDDy6GefHowFU1iqmxvbdm1MWH+PFbw1y7ItZJkPm5i/Qkg8Oi7pik9zjxdcJfMD 780YiEbq2JuRJvujG7lwmULIb0BtGsc2Y1k5s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=nlRaRygoH1F5OwIfJO1jaCgbSXnCFMX1ru3T403NXNjqxa719WPSqFm8xs3kVUOT3V r0oU7JG3zR5P8z0eg8gjA4Z9XBxWSb8aqDPxEddEHzq4BDhgCEP5+I8uV5y98VQ0TKy2 2jsJy72dn+FnMN5UVswnJvYzhDwG1HHOUI0Iw= Received: by 10.210.7.11 with SMTP id 11mr4981006ebg.5.1254834775549; Tue, 06 Oct 2009 06:12:55 -0700 (PDT) Received: from zoinx.mars (d133062.upc-d.chello.nl [213.46.133.62]) by mx.google.com with ESMTPS id 10sm219680eyd.37.2009.10.06.06.12.54 (version=SSLv3 cipher=RC4-MD5); Tue, 06 Oct 2009 06:12:54 -0700 (PDT) Message-ID: <4ACB4464.9080803@gmail.com> Date: Tue, 06 Oct 2009 15:21:40 +0200 From: Roel Kluin User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Thunderbird/3.0b3 MIME-Version: 1.0 To: Tony Lindgren , linux-omap@vger.kernel.org, Andrew Morton Subject: [PATCH] OMAP: Fix Unlikely(x) < y Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c index 71ebd7f..7c345b7 100644 --- a/arch/arm/plat-omap/gpio.c +++ b/arch/arm/plat-omap/gpio.c @@ -373,7 +373,7 @@ static inline int gpio_valid(int gpio) static int check_gpio(int gpio) { - if (unlikely(gpio_valid(gpio)) < 0) { + if (unlikely(gpio_valid(gpio) < 0)) { printk(KERN_ERR "omap-gpio: invalid GPIO %d\n", gpio); dump_stack(); return -1;