Skip to contentSkip to conversation

ext4: remove redundant argument in mb_find_extent()

PATCH New Robin Dong 1 participant 1 message Aug 26, 2011 ext4 file system

lore
Share & tools
lore

Robin Dong

author
#0 lore raw

PATCH 1/2 ext4: remove redundant argument in mb_find_extent()

From: Robin Dong <[email protected]>

The argument of "ord" in mb_find_extent is not necessary.

---
 fs/ext4/mballoc.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
fs/ext4/mballoc.c +1 -3
index 17a5a57..cc8ed5a 100644
@@ -1390,7 +1390,6 @@ static int mb_find_extent(struct ext4_buddy *e4b, int order, int block,
 {
 	int next = block;
 	int max;
-	int ord;
 	void *buddy;
 
 	assert_spin_locked(ext4_group_lock_ptr(e4b->bd_sb, e4b->bd_group));
@@ -1432,9 +1431,8 @@ static int mb_find_extent(struct ext4_buddy *e4b, int order, int block,
 		if (mb_test_bit(next, EXT4_MB_BITMAP(e4b)))
 			break;
 
-		ord = mb_find_order_for_block(e4b, next);
+		order = mb_find_order_for_block(e4b, next);
 
-		order = ord;
 		block = next >> order;
 		ex->fe_len += 1 << order;
 	}
Signature · 1 line
1.7.4.1