From: Fabian Frederick Date: Tue, 17 Feb 2015 21:45:33 +0000 (-0800) Subject: fs/reiserfs/inode.c: replace 0 by NULL for pointers X-Git-Tag: v4.0-rc1~61^2~53 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=714b71a3a91f63e0852ad9a07edc3820800c681f;p=linux-2.6-block.git 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: Fabian Frederick Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/reiserfs/inode.c b/fs/reiserfs/inode.c index a7eec9888f10..e72401e1f995 100644 --- a/fs/reiserfs/inode.c +++ b/fs/reiserfs/inode.c @@ -2766,7 +2766,7 @@ static int reiserfs_write_begin(struct file *file, int old_ref = 0; inode = mapping->host; - *fsdata = 0; + *fsdata = NULL; if (flags & AOP_FLAG_CONT_EXPAND && (pos & (inode->i_sb->s_blocksize - 1)) == 0) { pos ++;