p9: avoid unused variable warning
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Jul 2011 06:43:53 +0000 (23:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Jul 2011 06:43:53 +0000 (23:43 -0700)
Commit 4e34e719e457 ("fs: take the ACL checks to common code") removed
the use of the 'acl' variable in v9fs_iop_get_acl(), but left the
variable definition around.  Remove it to get rid of the warning:

  fs/9p/acl.c: In function ‘v9fs_iop_get_acl’:
  fs/9p/acl.c:101:20: warning: unused variable ‘acl’

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/9p/acl.c

index 814be079c185277e5fde8f186cd1d2611e32e73d..e9cb57f07546b4a5f0d0ba5074c0f63276d4bc6d 100644 (file)
@@ -98,7 +98,6 @@ static struct posix_acl *v9fs_get_cached_acl(struct inode *inode, int type)
 
 struct posix_acl *v9fs_iop_get_acl(struct inode *inode, int type)
 {
-       struct posix_acl *acl;
        struct v9fs_session_info *v9ses;
 
        v9ses = v9fs_inode2v9ses(inode);