aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hfsplus
diff options
context:
space:
mode:
authorSougata Santra <sougata@tuxera.com>2014-04-03 17:50:33 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-04-03 19:21:26 -0400
commitabfeb724b43f371ea70ec2c1290ed33e6f65db60 (patch)
tree23a275cf4a44ec8d1e5e3bcbe87f980afb930da5 /fs/hfsplus
parent7fac376d78da96cc8debdd3f8e817c9136321486 (diff)
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 <sougata@tuxera.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/hfsplus')
-rw-r--r--fs/hfsplus/extents.c2
1 files changed, 0 insertions, 2 deletions
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,
227 u32 ablock, dblock, mask; 227 u32 ablock, dblock, mask;
228 sector_t sector; 228 sector_t sector;
229 int was_dirty = 0; 229 int was_dirty = 0;
230 int shift;
231 230
232 /* Convert inode block to disk allocation block */ 231 /* Convert inode block to disk allocation block */
233 shift = sbi->alloc_blksz_shift - sb->s_blocksize_bits;
234 ablock = iblock >> sbi->fs_shift; 232 ablock = iblock >> sbi->fs_shift;
235 233
236 if (iblock >= hip->fs_blocks) { 234 if (iblock >= hip->fs_blocks) {