diff options
author | Andi Kleen <andi@firstfloor.org> | 2010-06-14 13:28:03 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2010-06-14 13:28:03 -0400 |
commit | 5a0790c2c4a18435759a70e1562450035d778339 (patch) | |
tree | 80acb12d0e37196cf60ae4ca150c6b556115f302 /fs/ext4/namei.c | |
parent | 07a038245b28df9196ffb2e8cc626e9b956a4e23 (diff) |
ext4: remove initialized but not read variables
No real bugs found, just removed some dead code.
Found by gcc 4.6's new warnings.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/namei.c')
-rw-r--r-- | fs/ext4/namei.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index a43e6617b351..5a61f77e7d7c 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c | |||
@@ -1088,7 +1088,6 @@ static struct dentry *ext4_lookup(struct inode *dir, struct dentry *dentry, stru | |||
1088 | struct dentry *ext4_get_parent(struct dentry *child) | 1088 | struct dentry *ext4_get_parent(struct dentry *child) |
1089 | { | 1089 | { |
1090 | __u32 ino; | 1090 | __u32 ino; |
1091 | struct inode *inode; | ||
1092 | static const struct qstr dotdot = { | 1091 | static const struct qstr dotdot = { |
1093 | .name = "..", | 1092 | .name = "..", |
1094 | .len = 2, | 1093 | .len = 2, |
@@ -1097,7 +1096,6 @@ struct dentry *ext4_get_parent(struct dentry *child) | |||
1097 | struct buffer_head *bh; | 1096 | struct buffer_head *bh; |
1098 | 1097 | ||
1099 | bh = ext4_find_entry(child->d_inode, &dotdot, &de); | 1098 | bh = ext4_find_entry(child->d_inode, &dotdot, &de); |
1100 | inode = NULL; | ||
1101 | if (!bh) | 1099 | if (!bh) |
1102 | return ERR_PTR(-ENOENT); | 1100 | return ERR_PTR(-ENOENT); |
1103 | ino = le32_to_cpu(de->inode); | 1101 | ino = le32_to_cpu(de->inode); |