Skip to contentSkip to conversation

reiserfs: fix sparse warnings in lbalance.c

PATCH New Harvey Harrison 1 participant 1 message Feb 18, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 4/6 reiserfs: fix sparse warnings in lbalance.c

fs/reiserfs/lbalance.c:629:2: warning: Using plain integer as NULL pointer fs/reiserfs/lbalance.c:629:2: warning: Using plain integer as NULL pointer

---
 fs/reiserfs/lbalance.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/reiserfs/lbalance.c +1 -1
index 281f806..2837c06 100644
@@ -626,7 +626,7 @@ static void leaf_define_dest_src_infos(int shift_mode, struct tree_balance *tb,
 			       "vs-10250: leaf_define_dest_src_infos: shift type is unknown (%d)",
 			       shift_mode);
 	}
-	RFALSE(src_bi->bi_bh == 0 || dest_bi->bi_bh == 0,
+	RFALSE(src_bi->bi_bh == NULL || dest_bi->bi_bh == NULL,
 	       "vs-10260: mode==%d, source (%p) or dest (%p) buffer is initialized incorrectly",
 	       shift_mode, src_bi->bi_bh, dest_bi->bi_bh);
 }
Signature · 1 line
1.5.4.1.1278.gc75be