Clean up patch description so the English is clearer
[ext4-patch-queue.git] / remove-unused-code-from-ext4_find_entry
blobc5aa441fa0fbcdee1bddb123e0cfd2f01ac7c16c
1 ext4: remove unused code from ext4_find_entry()
3 From: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
5 The unused code found in ext3_find_entry() is also present (and still
6 unused) in the ext4_find_entry() code. This patch removes it.
8 Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
9 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
10 ---
12  fs/ext4/namei.c |    4 ----
13  1 files changed, 0 insertions(+), 4 deletions(-)
16 diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c
17 index fb673b1..67b6d8a 100644
18 --- a/fs/ext4/namei.c
19 +++ b/fs/ext4/namei.c
20 @@ -861,14 +861,10 @@ static struct buffer_head * ext4_find_entry (struct dentry *dentry,
21         int i, err;
22         struct inode *dir = dentry->d_parent->d_inode;
23         int namelen;
24 -       const u8 *name;
25 -       unsigned blocksize;
27         *res_dir = NULL;
28         sb = dir->i_sb;
29 -       blocksize = sb->s_blocksize;
30         namelen = dentry->d_name.len;
31 -       name = dentry->d_name.name;
32         if (namelen > EXT4_NAME_LEN)
33                 return NULL;
34         if (is_dx(dir)) {