From patchwork Sat Apr 30 12:39:29 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatolij Gustschin X-Patchwork-Id: 93502 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 E0D12B6F5D for ; Sat, 30 Apr 2011 22:39:41 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D110628226; Sat, 30 Apr 2011 14:39:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 mAY8iSFN0Vmg; Sat, 30 Apr 2011 14:39:39 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 57E9F28228; Sat, 30 Apr 2011 14:39:37 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5368A28228 for ; Sat, 30 Apr 2011 14:39:35 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 NFSu+udMOv9c for ; Sat, 30 Apr 2011 14:39:33 +0200 (CEST) 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 ESMTP id 0BF9B28226 for ; Sat, 30 Apr 2011 14:39:31 +0200 (CEST) Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 098941824457; Sat, 30 Apr 2011 14:39:31 +0200 (CEST) X-Auth-Info: vdviyuvN/R8rP6OrBJoi//qCgpLSLWknM7TZ4DgOvtQ= Received: from localhost (p4FDE7DE1.dip.t-dialin.net [79.222.125.225]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA id 0EDA61C000F9; Sat, 30 Apr 2011 14:39:31 +0200 (CEST) From: Anatolij Gustschin To: u-boot@lists.denx.de Date: Sat, 30 Apr 2011 14:39:29 +0200 Message-Id: <1304167169-22651-1-git-send-email-agust@denx.de> X-Mailer: git-send-email 1.7.1 Cc: Andy Fleming Subject: [U-Boot] [PATCH] common/cmd_mdio.c: fix compile warning X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 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 cmd_mdio.c: In function 'mdio_read_ranges': cmd_mdio.c:97: warning: comparison is always false due to limited range of data type Signed-off-by: Anatolij Gustschin Cc: Andy Fleming --- common/cmd_mdio.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/cmd_mdio.c b/common/cmd_mdio.c index cac0703..4ac9de4 100644 --- a/common/cmd_mdio.c +++ b/common/cmd_mdio.c @@ -91,9 +91,9 @@ int mdio_read_ranges(struct mii_dev *bus, int addrlo, for (devad = devadlo; devad <= devadhi; devad++) { for (reg = reglo; reg <= reghi; reg++) { - u16 val; - val = bus->read(bus, addr, devad, reg); + int val; + val = bus->read(bus, addr, devad, reg); if (val < 0) { printf("Error\n");