* [PATCH] hfsplus: remove unused variable in hfsplus_get_block
@ 2014-02-17 13:00 Sougata Santra
0 siblings, 0 replies; only message in thread
From: Sougata Santra @ 2014-02-17 13:00 UTC (permalink / raw)
To: Andrew Morton
Cc: Vyacheslav Dubeyko, Joe Perches, Sougata Santra,
Alexey Khoroshilov, linux-fsdevel, linux-kernel
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>
---
fs/hfsplus/extents.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/fs/hfsplus/extents.c b/fs/hfsplus/extents.c
index fbb212f..136d860 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,
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) {
--
1.8.1.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-02-17 13:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-17 13:00 [PATCH] hfsplus: remove unused variable in hfsplus_get_block Sougata Santra
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.