lkml.org 
[lkml]   [2005]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 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

Signed-off-by: Randy Dunlap <rddunlap@osdl.org>

diffstat:=
fs/reiserfs/namei.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -Naurp ./fs/reiserfs/namei.c~reiserfs_null ./fs/reiserfs/namei.c
--- ./fs/reiserfs/namei.c~reiserfs_null 2005-02-15 13:48:46.327310224 -0800
+++ ./fs/reiserfs/namei.c 2005-02-15 20:53:22.903281976 -0800
@@ -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;


---
-
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/
\
 
 \ /
  Last update: 2005-03-22 14:11    [W:2.337 / U:0.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site