Skip to contentSkip to conversation

+ hfsplus-remove-unused-variable-in-hfsplus_get_block.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Feb 18, 2014 Hfsplus filesystem

lore
Share & tools
lore
#0 lore raw

Subject: + hfsplus-remove-unused-variable-in-hfsplus_get_block.patch added to -mm tree
To: [email protected]
From: [email protected]
Date: Tue, 18 Feb 2014 13:58:51 -0800

The patch titled
Subject: fs/hfsplus/extents.c: remove unused variable in hfsplus_get_block
has been added to the -mm tree. Its filename is
hfsplus-remove-unused-variable-in-hfsplus_get_block.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/hfsplus-remove-unused-variable-in-hfsplus_get_block.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/hfsplus-remove-unused-variable-in-hfsplus_get_block.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Sougata Santra <[email protected]>
Subject: 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.

---

 fs/hfsplus/extents.c |    2 --
 1 file changed, 2 deletions(-)
fs/hfsplus/extents.c renamed from fs/hfsplus/extents.c~hfsplus-remove-unused-variable-in-hfsplus_get_block +0 -2
diff -puN fs/hfsplus/extents.c~hfsplus-remove-unused-variable-in-hfsplus_get_block fs/hfsplus/extents.c
@@ -227,10 +227,8 @@ int hfsplus_get_block(struct inode *inod
 	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) {

_

Patches currently in -mm which might be from [email protected] are

hfsplus-remove-unused-variable-in-hfsplus_get_block.patch