From: Andrew Morton Date: Fri, 8 Feb 2008 12:20:53 +0000 (-0800) Subject: fs/afs/security.c: fix uninitialized var warning X-Git-Tag: v2.6.25-rc1~125 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=69759454873fd90130007bdb60948a79e880cd82;p=linux-2.6-omap-h63xx.git fs/afs/security.c: fix uninitialized var warning 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/afs/security.c b/fs/afs/security.c index 9446a1fd108..3bcbeceba1b 100644 --- a/fs/afs/security.c +++ b/fs/afs/security.c @@ -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;