]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
fs/hfsplus/extents.c: remove unused variable in hfsplus_get_block
authorSougata Santra <sougata@tuxera.com>
Thu, 3 Apr 2014 21:50:33 +0000 (14:50 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Apr 2014 23:21:26 +0000 (16:21 -0700)
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>
fs/hfsplus/extents.c

index fbb212fbb1efbfee64443bd3fe5f039fbf28426a..136d860cd74617dbc824ec7761d1d4f0819a1c56 100644 (file)
@@ -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) {