From patchwork Thu Nov 6 13:02:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfgang Denk X-Patchwork-Id: 407446 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id DBD4E14008C for ; Fri, 7 Nov 2014 00:03:39 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AFA644BBC1; Thu, 6 Nov 2014 14:03:35 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7uL9pRGxbFTx; Thu, 6 Nov 2014 14:03:35 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id F2949A7407; Thu, 6 Nov 2014 14:03:30 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8250D4BFCD for ; Thu, 6 Nov 2014 14:03:27 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 46gVajBx711q for ; Thu, 6 Nov 2014 14:03:27 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by theia.denx.de (Postfix) with ESMTPS id 590074BFC7 for ; Thu, 6 Nov 2014 14:03:24 +0100 (CET) Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3jYPzw1LS7z3hk3g; Thu, 6 Nov 2014 14:03:24 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3jYPzw0ZWZzvSfV; Thu, 6 Nov 2014 14:03:24 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.184]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id AOsKrMMMadDs; Thu, 6 Nov 2014 14:03:18 +0100 (CET) X-Auth-Info: ytV+ym2a4aFx4aejZPNiDncHJHIVMZL4O+KHCeRLRLI= Received: from diddl.denx.de (host-80-81-18-216.customer.m-online.net [80.81.18.216]) by smtp-auth.mnet-online.de (Postfix) with ESMTPA; Thu, 6 Nov 2014 14:03:15 +0100 (CET) Received: from gemini.denx.de (gemini.denx.de [10.0.0.2]) by diddl.denx.de (Postfix) with ESMTP id 6D19A1AAC33; Thu, 6 Nov 2014 14:03:10 +0100 (CET) Received: by gemini.denx.de (Postfix, from userid 500) id 3E6B03833CA; Thu, 6 Nov 2014 14:03:10 +0100 (MET) From: Wolfgang Denk To: u-boot@lists.denx.de Date: Thu, 6 Nov 2014 14:02:58 +0100 Message-Id: <1415278985-8482-3-git-send-email-wd@denx.de> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1415278985-8482-1-git-send-email-wd@denx.de> References: <1415278985-8482-1-git-send-email-wd@denx.de> Cc: Roger Meier Subject: [U-Boot] [PATCH 2/9] board/cogent/lcd.c: fix syntax error X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Fix error detected by cppcheck: [board/cogent/lcd.c:237]: (error) Invalid number of character (() when these macros are defined: 'CONFIG_SHOW_ACTIVITY;CONFIG_STATUS_LED'. Signed-off-by: Wolfgang Denk --- board/cogent/lcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/cogent/lcd.c b/board/cogent/lcd.c index 8e90f98..05ffc4d 100644 --- a/board/cogent/lcd.c +++ b/board/cogent/lcd.c @@ -234,7 +234,7 @@ lcd_heartbeat(void) void board_show_activity (ulong timestamp) { #ifdef CONFIG_STATUS_LED - if ((timestamp % (CONFIG_SYS_HZ / 2) == 0) + if ((timestamp % (CONFIG_SYS_HZ / 2)) == 0) lcd_heartbeat (); #endif }