Skip to content

Commit

Permalink
9p: fix sparse warnings in new xattr code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Van Hensbergen committed Aug 2, 2010
1 parent ea13753 commit 327aec0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/9p/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 327aec0

Please sign in to comment.