From: Borislav Petkov Date: Wed, 17 Oct 2007 06:30:05 +0000 (-0700) Subject: fs/isofs/namei.c: Remove uninitialized local vars warning X-Git-Tag: v2.6.24-rc1~615 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd215237d2c2c1efb501f70be8e9ed1f81f3c068;p=linux-2.6 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/isofs/namei.c b/fs/isofs/namei.c index c8c7e5138a..e2b4dad39c 100644 --- a/fs/isofs/namei.c +++ b/fs/isofs/namei.c @@ -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;