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

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

 



Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxx>

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:

_______________________________________________

Ext3-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/ext3-users

[Index of Archives]         [Linux RAID]     [Kernel Development]     [Red Hat Install]     [Video 4 Linux]     [Postgresql]     [Fedora]     [Gimp]     [Yosemite News]

  Powered by Linux