diff options
author | Borislav Petkov <bbpetkov@yahoo.de> | 2007-10-17 02:30:05 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 11:42:58 -0400 |
commit | cd215237d2c2c1efb501f70be8e9ed1f81f3c068 (patch) | |
tree | 2cb9be788485f987e0407082f20a6ab917b195ab | |
parent | bda5b655fe663c86ae16436ab983a656d73b6e62 (diff) |
fs/isofs/namei.c: Remove uninitialized local vars warning
shut up those:
fs/isofs/namei.c: In function 'isofs_lookup':
fs/isofs/namei.c:161: warning: 'offset' may be used uninitialized in this function
fs/isofs/namei.c:161: warning: 'block' may be used uninitialized in this function
By the way, they get overwritten at the end of isofs_find_entry().
Signed-off-by: Borislav Petkov <bbpetkov@yahoo.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | fs/isofs/namei.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/isofs/namei.c b/fs/isofs/namei.c index c8c7e5138a01..e2b4dad39ca9 100644 --- a/fs/isofs/namei.c +++ b/fs/isofs/namei.c | |||
@@ -158,7 +158,8 @@ isofs_find_entry(struct inode *dir, struct dentry *dentry, | |||
158 | struct dentry *isofs_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd) | 158 | struct dentry *isofs_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd) |
159 | { | 159 | { |
160 | int found; | 160 | int found; |
161 | unsigned long block, offset; | 161 | unsigned long uninitialized_var(block); |
162 | unsigned long uninitialized_var(offset); | ||
162 | struct inode *inode; | 163 | struct inode *inode; |
163 | struct page *page; | 164 | struct page *page; |
164 | 165 | ||