Commit 714b71a3 authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds

fs/reiserfs/inode.c: replace 0 by NULL for pointers

Fix sparse warning:

  fs/reiserfs/inode.c:2769:19: warning: Using plain integer as NULL pointer
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ed3ad79f
...@@ -2766,7 +2766,7 @@ static int reiserfs_write_begin(struct file *file, ...@@ -2766,7 +2766,7 @@ static int reiserfs_write_begin(struct file *file,
int old_ref = 0; int old_ref = 0;
inode = mapping->host; inode = mapping->host;
*fsdata = 0; *fsdata = NULL;
if (flags & AOP_FLAG_CONT_EXPAND && if (flags & AOP_FLAG_CONT_EXPAND &&
(pos & (inode->i_sb->s_blocksize - 1)) == 0) { (pos & (inode->i_sb->s_blocksize - 1)) == 0) {
pos ++; pos ++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment