From: Sougata Santra Date: Thu, 3 Apr 2014 21:50:33 +0000 (-0700) Subject: fs/hfsplus/extents.c: remove unused variable in hfsplus_get_block X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=abfeb724b43f371ea70ec2c1290ed33e6f65db60;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git fs/hfsplus/extents.c: remove unused variable in hfsplus_get_block The variable is defined but not used. Generally it compiles away with -O2 optimization hence it does not show a warning. Signed-off-by: Sougata Santra Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/hfsplus/extents.c b/fs/hfsplus/extents.c index fbb212fbb1ef..136d860cd746 100644 --- a/fs/hfsplus/extents.c +++ b/fs/hfsplus/extents.c @@ -227,10 +227,8 @@ int hfsplus_get_block(struct inode *inode, sector_t iblock, u32 ablock, dblock, mask; sector_t sector; int was_dirty = 0; - int shift; /* Convert inode block to disk allocation block */ - shift = sbi->alloc_blksz_shift - sb->s_blocksize_bits; ablock = iblock >> sbi->fs_shift; if (iblock >= hip->fs_blocks) {