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

[PATCH] ext3: s/0/NULL/ in pointer context



Signed-off-by: Alexey Dobriyan <adobriyan mail ru>

Index: linux-2.6.10-bk11-warnings/fs/ext3/inode.c
===================================================================
--- linux-2.6.10-bk11-warnings/fs/ext3/inode.c	(revision 11)
+++ linux-2.6.10-bk11-warnings/fs/ext3/inode.c	(revision 12)
@@ -803,7 +803,7 @@
 
 	if (create) {
 		handle = ext3_journal_current_handle();
-		J_ASSERT(handle != 0);
+		J_ASSERT(handle != NULL);
 	}
 	ret = ext3_get_block_handle(handle, inode, iblock,
 				bh_result, create, 1);
@@ -876,7 +876,7 @@
 		bh = sb_getblk(inode->i_sb, dummy.b_blocknr);
 		if (buffer_new(&dummy)) {
 			J_ASSERT(create != 0);
-			J_ASSERT(handle != 0);
+			J_ASSERT(handle != NULL);
 
 			/* Now that we do not always journal data, we
 			   should keep in mind whether this should
Index: linux-2.6.10-bk11-warnings/fs/ext3/fsync.c
===================================================================
--- linux-2.6.10-bk11-warnings/fs/ext3/fsync.c	(revision 11)
+++ linux-2.6.10-bk11-warnings/fs/ext3/fsync.c	(revision 12)
@@ -47,7 +47,7 @@
 	struct inode *inode = dentry->d_inode;
 	int ret = 0;
 
-	J_ASSERT(ext3_journal_current_handle() == 0);
+	J_ASSERT(ext3_journal_current_handle() == NULL);
 
 	/*
 	 * data=writeback:


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