From: Mariusz Kozlowski Date: Tue, 29 Jan 2008 04:58:27 +0000 (-0500) Subject: ext4: remove unused code from ext4_find_entry() X-Git-Tag: v2.6.25-rc1~1166^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=01f4adc04480a4e0395906d0268c056cf09c39c0;p=platform%2Fkernel%2Flinux-exynos.git ext4: remove unused code from ext4_find_entry() The unused code found in ext3_find_entry() is also present (and still unused) in the ext4_find_entry() code. This patch removes it. Signed-off-by: Mariusz Kozlowski Signed-off-by: "Theodore Ts'o" --- diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index fb673b1..67b6d8a 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c @@ -861,14 +861,10 @@ static struct buffer_head * ext4_find_entry (struct dentry *dentry, int i, err; struct inode *dir = dentry->d_parent->d_inode; int namelen; - const u8 *name; - unsigned blocksize; *res_dir = NULL; sb = dir->i_sb; - blocksize = sb->s_blocksize; namelen = dentry->d_name.len; - name = dentry->d_name.name; if (namelen > EXT4_NAME_LEN) return NULL; if (is_dx(dir)) {