]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ppc64: yet another hugepage cleanup
authorAndrew Morton <akpm@osdl.org>
Sat, 17 Apr 2004 10:29:02 +0000 (03:29 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 17 Apr 2004 10:29:02 +0000 (03:29 -0700)
From: David Gibson <david@gibson.dropbear.id.au>

Trivial cleanup to flush_hash_hugepage() in the ppc64 hugepage code.

arch/ppc64/mm/hugetlbpage.c

index b64b08883793742f10d8767e7739946ef75c4a52..db13053d37ef511dac47dab90a5aec078d473075 100644 (file)
@@ -738,7 +738,7 @@ repeat:
 static void flush_hash_hugepage(mm_context_t context, unsigned long ea,
                                hugepte_t pte, int local)
 {
-       unsigned long vsid, vpn, va, hash, secondary, slot;
+       unsigned long vsid, vpn, va, hash, slot;
 
        BUG_ON(hugepte_bad(pte));
        BUG_ON(!in_hugepage_area(context, ea));
@@ -748,8 +748,7 @@ static void flush_hash_hugepage(mm_context_t context, unsigned long ea,
        va = (vsid << 28) | (ea & 0x0fffffff);
        vpn = va >> LARGE_PAGE_SHIFT;
        hash = hpt_hash(vpn, 1);
-       secondary = !!(hugepte_val(pte) & _HUGEPAGE_SECONDARY);
-       if (secondary)
+       if (hugepte_val(pte) & _HUGEPAGE_SECONDARY)
                hash = ~hash;
        slot = (hash & htab_data.htab_hash_mask) * HPTES_PER_GROUP;
        slot += (hugepte_val(pte) & _HUGEPAGE_GROUP_IX) >> 5;