aboutsummaryrefslogtreecommitdiffstats
path: root/fs/9p/xattr.c
diff options
context:
space:
mode:
authorEric Van Hensbergen <ericvh@gmail.com>2010-08-02 12:36:18 -0400
committerEric Van Hensbergen <ericvh@gmail.com>2010-08-02 15:28:38 -0400
commit327aec03ac4c7bbf5e41ff03ac3a84c424589f27 (patch)
tree60e5b49a28ea5dc3f0003961f2c6740b5bf3210b /fs/9p/xattr.c
parentea1375333ef58298ba4d3c638f3cba982c76504d (diff)
9p: fix sparse warnings in new xattr code
fixes: CHECK fs/9p/xattr.c fs/9p/xattr.c:73:6: warning: Using plain integer as NULL pointer fs/9p/xattr.c:135:6: warning: Using plain integer as NULL pointer Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p/xattr.c')
-rw-r--r--fs/9p/xattr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/9p/xattr.c b/fs/9p/xattr.c
index c434424be869..f88e5c2dc873 100644
--- a/fs/9p/xattr.c
+++ b/fs/9p/xattr.c
@@ -70,7 +70,7 @@ ssize_t v9fs_xattr_get(struct dentry *dentry, const char *name,
70 else 70 else
71 read_count = attr_size; 71 read_count = attr_size;
72 read_count = p9_client_read(attr_fid, ((char *)buffer)+offset, 72 read_count = p9_client_read(attr_fid, ((char *)buffer)+offset,
73 0, offset, read_count); 73 NULL, offset, read_count);
74 if (read_count < 0) { 74 if (read_count < 0) {
75 /* error in xattr read */ 75 /* error in xattr read */
76 retval = read_count; 76 retval = read_count;
@@ -132,7 +132,7 @@ int v9fs_xattr_set(struct dentry *dentry, const char *name,
132 else 132 else
133 write_count = value_len; 133 write_count = value_len;
134 write_count = p9_client_write(fid, ((char *)value)+offset, 134 write_count = p9_client_write(fid, ((char *)value)+offset,
135 0, offset, write_count); 135 NULL, offset, write_count);
136 if (write_count < 0) { 136 if (write_count < 0) {
137 /* error in xattr write */ 137 /* error in xattr write */
138 retval = write_count; 138 retval = write_count;