Messages in this thread Patch in this message | | | Date | Sun, 21 Nov 2004 23:08:21 +0100 (CET) | From | Jesper Juhl <> | Subject | [patch] silence sparse warning in fs/reiserfs/namei.c about using plain integer as NULL pointer |
| |
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@dif.dk>
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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |