Skip to contentSkip to conversation

reiserfs: use NULL instead of 0

PATCH New Randy.Dunlap 1 participant 1 message Mar 15, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 reiserfs: use NULL instead of 0

(resend)

Use NULL instead of 0 for pointer (sparse warning):
fs/reiserfs/namei.c:611:50: warning: Using plain integer as NULL pointer

diffstat:=

 fs/reiserfs/namei.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
fs/reiserfs/namei.c renamed from fs/reiserfs/namei.c~reiserfs_null +1 -1
diff -Naurp ./fs/reiserfs/namei.c~reiserfs_null ./fs/reiserfs/namei.c
@@ -608,7 +608,7 @@ static int reiserfs_create (struct inode
         goto out_failed;
     }
 
-    retval = reiserfs_new_inode (&th, dir, mode, 0, 0/*i_size*/, dentry, inode);
+    retval = reiserfs_new_inode (&th, dir, mode, NULL, 0/*i_size*/, dentry, inode);
     if (retval)
         goto out_failed;
 	

---