Skip to content

Commit

Permalink
fs/afs/security.c: fix uninitialized var warning
Browse files Browse the repository at this point in the history
fs/afs/security.c: In function 'afs_permission':
fs/afs/security.c:290: warning: 'access' may be used uninitialized in this function

Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Feb 8, 2008
1 parent 8aa84ab commit 6975945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/afs/security.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ static int afs_check_permit(struct afs_vnode *vnode, struct key *key,
int afs_permission(struct inode *inode, int mask, struct nameidata *nd)
{
struct afs_vnode *vnode = AFS_FS_I(inode);
afs_access_t access;
afs_access_t uninitialized_var(access);
struct key *key;
int ret;

Expand Down

0 comments on commit 6975945

Please sign in to comment.