All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1 linux-next] fs/reiserfs/inode.c: replace 0 by NULL for pointers
@ 2014-12-25  9:43 Fabian Frederick
  2014-12-25 12:17 ` Richard Weinberger
  0 siblings, 1 reply; 2+ messages in thread
From: Fabian Frederick @ 2014-12-25  9:43 UTC (permalink / raw)
  To: linux-kernel
  Cc: Fabian Frederick, reiserfs-devel, Jeff Mahoney, Andrew Morton

Fix sparse warning:
fs/reiserfs/inode.c:2769:19: warning: Using plain integer as NULL pointer

Cc: reiserfs-devel@vger.kernel.org
Cc: Jeff Mahoney <jeffm@suse.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
 fs/reiserfs/inode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/reiserfs/inode.c b/fs/reiserfs/inode.c
index a7eec98..e72401e 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 ++;
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-25 12:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-25  9:43 [PATCH 1/1 linux-next] fs/reiserfs/inode.c: replace 0 by NULL for pointers Fabian Frederick
2014-12-25 12:17 ` Richard Weinberger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.