Commit abfeb724 authored by Sougata Santra's avatar Sougata Santra Committed by Linus Torvalds

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: default avatarSougata Santra <sougata@tuxera.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7fac376d
...@@ -227,10 +227,8 @@ int hfsplus_get_block(struct inode *inode, sector_t iblock, ...@@ -227,10 +227,8 @@ int hfsplus_get_block(struct inode *inode, sector_t iblock,
u32 ablock, dblock, mask; u32 ablock, dblock, mask;
sector_t sector; sector_t sector;
int was_dirty = 0; int was_dirty = 0;
int shift;
/* Convert inode block to disk allocation block */ /* Convert inode block to disk allocation block */
shift = sbi->alloc_blksz_shift - sb->s_blocksize_bits;
ablock = iblock >> sbi->fs_shift; ablock = iblock >> sbi->fs_shift;
if (iblock >= hip->fs_blocks) { if (iblock >= hip->fs_blocks) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment