mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 06:02:05 +00:00
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>
This commit is contained in:
parent
bda5b655fe
commit
cd215237d2
@ -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)
|
struct dentry *isofs_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd)
|
||||||
{
|
{
|
||||||
int found;
|
int found;
|
||||||
unsigned long block, offset;
|
unsigned long uninitialized_var(block);
|
||||||
|
unsigned long uninitialized_var(offset);
|
||||||
struct inode *inode;
|
struct inode *inode;
|
||||||
struct page *page;
|
struct page *page;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user