9p: fix sparse warnings in new xattr code
authorEric Van Hensbergen <ericvh@gmail.com>
Mon, 2 Aug 2010 16:36:18 +0000 (11:36 -0500)
committerEric Van Hensbergen <ericvh@gmail.com>
Mon, 2 Aug 2010 19:28:38 +0000 (14:28 -0500)
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>
fs/9p/xattr.c

index c434424be869cd59cfe89a68b0b4c083cf96684d..f88e5c2dc8730bce3548c9c550b1d8480bcfbeb6 100644 (file)
@@ -70,7 +70,7 @@ ssize_t v9fs_xattr_get(struct dentry *dentry, const char *name,
                else
                        read_count = attr_size;
                read_count = p9_client_read(attr_fid, ((char *)buffer)+offset,
-                                       0, offset, read_count);
+                                       NULL, offset, read_count);
                if (read_count < 0) {
                        /* error in xattr read */
                        retval = read_count;
@@ -132,7 +132,7 @@ int v9fs_xattr_set(struct dentry *dentry, const char *name,
                else
                        write_count = value_len;
                write_count = p9_client_write(fid, ((char *)value)+offset,
-                                       0, offset, write_count);
+                                       NULL, offset, write_count);
                if (write_count < 0) {
                        /* error in xattr write */
                        retval = write_count;