]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - fs/ext4/namei.c
ext4: remove initialized but not read variables
[mv-sheeva.git] / fs / ext4 / namei.c
index a43e6617b35119e6bb46815e4f73aa2a518a4e30..5a61f77e7d7ce7181340375752c70c240cb86e88 100644 (file)
@@ -1088,7 +1088,6 @@ static struct dentry *ext4_lookup(struct inode *dir, struct dentry *dentry, stru
 struct dentry *ext4_get_parent(struct dentry *child)
 {
        __u32 ino;
-       struct inode *inode;
        static const struct qstr dotdot = {
                .name = "..",
                .len = 2,
@@ -1097,7 +1096,6 @@ struct dentry *ext4_get_parent(struct dentry *child)
        struct buffer_head *bh;
 
        bh = ext4_find_entry(child->d_inode, &dotdot, &de);
-       inode = NULL;
        if (!bh)
                return ERR_PTR(-ENOENT);
        ino = le32_to_cpu(de->inode);