From patchwork Thu Sep 30 19:15:39 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Weil X-Patchwork-Id: 66238 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C8B20B6EE9 for ; Fri, 1 Oct 2010 05:17:28 +1000 (EST) Received: from localhost ([127.0.0.1]:36708 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1OdB-0000C3-7u for incoming@patchwork.ozlabs.org; Thu, 30 Sep 2010 15:17:25 -0400 Received: from [140.186.70.92] (port=43882 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1Obp-0008Bm-0H for qemu-devel@nongnu.org; Thu, 30 Sep 2010 15:16:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P1Obn-0005JB-Er for qemu-devel@nongnu.org; Thu, 30 Sep 2010 15:16:00 -0400 Received: from moutng.kundenserver.de ([212.227.17.8]:51225) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P1Obn-0005Id-2E for qemu-devel@nongnu.org; Thu, 30 Sep 2010 15:15:59 -0400 Received: from flocke.weilnetz.de (p54ADB6CF.dip.t-dialin.net [84.173.182.207]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0M21V9-1Omcly11WF-00tXet; Thu, 30 Sep 2010 21:15:41 +0200 Received: from stefan by flocke.weilnetz.de with local (Exim 4.72) (envelope-from ) id 1P1ObU-0002Xb-CU; Thu, 30 Sep 2010 21:15:40 +0200 From: Stefan Weil To: QEMU Developers Date: Thu, 30 Sep 2010 21:15:39 +0200 Message-Id: <1285874139-9740-1-git-send-email-weil@mail.berlios.de> X-Mailer: git-send-email 1.7.1 X-Provags-ID: V02:K0:w/Guql2Qsq9ND6zwNxxviZ3VY3G6/xnlgBIqZzRfHtA pc8gXIJTQiDsIwLUFV8IwViBmuQseGyyZUbJj6gBAuIAgKTdGZ T8zhoP21ufslxY62sRU/jMfgzzNzbX8fYuAPXDJYHbYt9tyeO4 OwbHKPUIzqlKAm8h6gnG3iMLcuYyvXHLR+frd5VSrA3xT9Xz6Y KTIFhP/WYGE8EZCHPEyqKwdOeKhQq+b223jXH1XrTSOfuEreww eQaWY5Uo+VV3j X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: Blue Swirl , Kevin Wolf Subject: [Qemu-devel] [PATCH] block/vvfat: Fix compiler warning in debug code X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Fix this compiler warning: ./block/vvfat.c:2285: error: comparison of unsigned expression >= 0 is always true Cc: Blue Swirl Cc: Kevin Wolf Signed-off-by: Stefan Weil --- block/vvfat.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index 53e57bf..26dd474 100644 --- a/block/vvfat.c +++ b/block/vvfat.c @@ -2282,7 +2282,6 @@ static void check1(BDRVVVFATState* s) fprintf(stderr, "deleted\n"); continue; } - assert(mapping->dir_index >= 0); assert(mapping->dir_index < s->directory.next); direntry_t* direntry = array_get(&(s->directory), mapping->dir_index); assert(mapping->begin == begin_of_direntry(direntry) || mapping->first_mapping_index >= 0);