NFSD: Remove setting unused variable in nfsd_vfs_read()
authorBryan Schumaker <bjschuma@netapp.com>
Wed, 27 Apr 2011 19:47:14 +0000 (15:47 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Sat, 30 Apr 2011 00:47:57 +0000 (20:47 -0400)
commitfccb13c947de83a368e1f3c2216bbf4d8d41efa1
tree48f4ce535e1e34e610cf0eb4b6127db76e7b6a55
parentbcecf1ccc336200ee488e8eb68acdafc4b0dbd1a
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>
fs/nfsd/vfs.c