diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2008-02-08 07:20:53 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-08 12:22:36 -0500 |
commit | 69759454873fd90130007bdb60948a79e880cd82 (patch) | |
tree | cccbe25d2f94316f88b7632a81449333b9312c4d /fs/afs/security.c | |
parent | 8aa84ab99b1e47973f0b82258f0eab945d0b114d (diff) |
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 <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/afs/security.c')
-rw-r--r-- | fs/afs/security.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/afs/security.c b/fs/afs/security.c index 9446a1fd108a..3bcbeceba1bb 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, | |||
287 | int afs_permission(struct inode *inode, int mask, struct nameidata *nd) | 287 | int afs_permission(struct inode *inode, int mask, struct nameidata *nd) |
288 | { | 288 | { |
289 | struct afs_vnode *vnode = AFS_FS_I(inode); | 289 | struct afs_vnode *vnode = AFS_FS_I(inode); |
290 | afs_access_t access; | 290 | afs_access_t uninitialized_var(access); |
291 | struct key *key; | 291 | struct key *key; |
292 | int ret; | 292 | int ret; |
293 | 293 | ||