projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed3ad79
)
fs/reiserfs/inode.c: replace 0 by NULL for pointers
author
Fabian Frederick
<fabf@skynet.be>
Tue, 17 Feb 2015 21:45:33 +0000
(13:45 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 17 Feb 2015 22:34:51 +0000
(14:34 -0800)
Fix sparse warning:
fs/reiserfs/inode.c:2769:19: warning: Using plain integer as NULL pointer
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/reiserfs/inode.c
patch
|
blob
|
history
diff --git
a/fs/reiserfs/inode.c
b/fs/reiserfs/inode.c
index a7eec9888f10f1d2e3f6b0f92bbddba8aaea21cc..e72401e1f9956238064c91805279233a721bffe1 100644
(file)
--- 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 ++;