diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2011-04-27 15:47:14 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2011-04-29 20:47:57 -0400 |
commit | fccb13c947de83a368e1f3c2216bbf4d8d41efa1 (patch) | |
tree | 48f4ce535e1e34e610cf0eb4b6127db76e7b6a55 /fs/nfsd/vfs.c | |
parent | bcecf1ccc336200ee488e8eb68acdafc4b0dbd1a (diff) |
NFSD: Remove setting unused variable in nfsd_vfs_read()
Compiling gave me this warning:
fs/nfsd/vfs.c: In function ‘nfsd_vfs_read’:
fs/nfsd/vfs.c:880:16: warning: variable ‘inode’ set but not used
[-Wunused-but-set-variable]
I discovered that a local variable "inode" was being set towards the
beginning of nfsd_vfs_read() and then ignored for the rest of the
function.
Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/vfs.c')
-rw-r--r-- | fs/nfsd/vfs.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index 389e45ad200b..f4e056ae53e4 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c | |||
@@ -874,13 +874,11 @@ static __be32 | |||
874 | nfsd_vfs_read(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, | 874 | nfsd_vfs_read(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, |
875 | loff_t offset, struct kvec *vec, int vlen, unsigned long *count) | 875 | loff_t offset, struct kvec *vec, int vlen, unsigned long *count) |
876 | { | 876 | { |
877 | struct inode *inode; | ||
878 | mm_segment_t oldfs; | 877 | mm_segment_t oldfs; |
879 | __be32 err; | 878 | __be32 err; |
880 | int host_err; | 879 | int host_err; |
881 | 880 | ||
882 | err = nfserr_perm; | 881 | err = nfserr_perm; |
883 | inode = file->f_path.dentry->d_inode; | ||
884 | 882 | ||
885 | if (file->f_op->splice_read && rqstp->rq_splice_ok) { | 883 | if (file->f_op->splice_read && rqstp->rq_splice_ok) { |
886 | struct splice_desc sd = { | 884 | struct splice_desc sd = { |