diff options
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); |