Skip to contentSkip to conversation

hfsplus: remove unused variable in hfsplus_get_block

PATCH New Sougata Santra 1 participant 1 message Feb 17, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hfsplus: 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.

---
 fs/hfsplus/extents.c | 2 --
 1 file changed, 2 deletions(-)
fs/hfsplus/extents.c +0 -2
index fbb212f..136d860 100644
@@ -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) {
Signature · 1 line
1.8.1.4