commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 21/87: ext2fs: fix compiler warning


From: Samuel Thibault
Subject: [hurd] 21/87: ext2fs: fix compiler warning
Date: Sun, 09 Nov 2014 11:05:00 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 6ec540993675a4d0e60497c7788cb577a79028f8
Author: Justus Winter <address@hidden>
Date:   Wed Jun 4 17:05:36 2014 +0200

    ext2fs: fix compiler warning
    
    * ext2fs/pager.c (disk_cache_block_ref): block cannot be negative.
---
 ext2fs/pager.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ext2fs/pager.c b/ext2fs/pager.c
index ce5bc6d..39cf1c7 100644
--- a/ext2fs/pager.c
+++ b/ext2fs/pager.c
@@ -957,7 +957,7 @@ disk_cache_block_ref (block_t block)
   int index;
   void *bptr;
 
-  assert (0 <= block && block < store->size >> log2_block_size);
+  assert (block < store->size >> log2_block_size);
 
   ext2_debug ("(%u)", block);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]