Skip to content

Commit

Permalink
fs/hfsplus/extents.c: remove unused variable in hfsplus_get_block
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sougata Santra authored and Linus Torvalds committed Apr 3, 2014
1 parent 7fac376 commit abfeb72
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/hfsplus/extents.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit abfeb72

Please sign in to comment.