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-Tag: v5.15~21943^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=62a1391ddd6fbe82fc02154dc760bcc5cbc9ef68;p=platform%2Fkernel%2Flinux-starfive.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 9f1e655..ca376e7d 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;