Skip to content

Commit

Permalink
fs/isofs/namei.c: Remove uninitialized local vars warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Borislav Petkov authored and Linus Torvalds committed Oct 17, 2007
1 parent bda5b65 commit cd21523
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/isofs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ isofs_find_entry(struct inode *dir, struct dentry *dentry,
struct dentry *isofs_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd)
{
int found;
unsigned long block, offset;
unsigned long uninitialized_var(block);
unsigned long uninitialized_var(offset);
struct inode *inode;
struct page *page;

Expand Down

0 comments on commit cd21523

Please sign in to comment.