bug-hurd
[Top][All Lists]
Advanced

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

[PATCH 5/9] ext2fs: fix compiler warning


From: Justus Winter
Subject: [PATCH 5/9] ext2fs: fix compiler warning
Date: Fri, 6 Jun 2014 16:42:14 +0200

* 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);
 
-- 
2.0.0.rc2




reply via email to

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