From: Haibo Liu Date: Mon, 9 Jul 2012 20:29:28 +0000 (-0400) Subject: ext4: remove an unused statement in ext4_mb_get_buddy_page_lock() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=62a1391ddd6fbe82fc02154dc760bcc5cbc9ef68;p=openwrt%2Fstaging%2Fblogic.git ext4: remove an unused statement in ext4_mb_get_buddy_page_lock() In this patch, the statement "poff = block % blocks_per_page" in ext4_mb_get_buddy_page_lock has no effect. It will be optimized out by the compiler, but it's better to remove it. Signed-off-by: Haibo Liu Signed-off-by: "Theodore Ts'o" --- diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index 9f1e655979b9..ca376e7d716a 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c @@ -969,7 +969,6 @@ static int ext4_mb_get_buddy_page_lock(struct super_block *sb, block++; pnum = block / blocks_per_page; - poff = block % blocks_per_page; page = find_or_create_page(inode->i_mapping, pnum, GFP_NOFS); if (!page) return -EIO;