[patch] silence sparse warning in fs/reiserfs/namei.c about usingplain integer as NULL pointer

From: Jesper Juhl
Date: Sun Nov 21 2004 - 17:00:03 EST



Hi,

sparse complains about passing 0 to functions execting a pointer argument:

CHECK fs/reiserfs/namei.c
fs/reiserfs/namei.c:617:50: warning: Using plain integer as NULL pointer

Trivial patch to change it to pass NULL instead below.

Signed-off-by: Jesper Juhl <juhl-lkml@xxxxxx>

diff -up linux-2.6.10-rc2-bk6-orig/fs/reiserfs/namei.c linux-2.6.10-rc2-bk6/fs/reiserfs/namei.c
--- linux-2.6.10-rc2-bk6-orig/fs/reiserfs/namei.c 2004-11-17 01:20:16.000000000 +0100
+++ linux-2.6.10-rc2-bk6/fs/reiserfs/namei.c 2004-11-21 22:52:41.000000000 +0100
@@ -614,7 +614,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;



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/