[tip:x86/mm] x86/mm/numa: Simplify some bit mangling

From: tip-bot for Martin Bundgaard
Date: Thu Apr 11 2013 - 08:18:37 EST


Commit-ID: 7e9a2f0a080ba2f247559e95eb0df7072bede18a
Gitweb: http://git.kernel.org/tip/7e9a2f0a080ba2f247559e95eb0df7072bede18a
Author: Martin Bundgaard <martin@xxxxxxxxxxxx>
AuthorDate: Thu, 14 Mar 2013 19:34:35 +0100
Committer: Ingo Molnar <mingo@xxxxxxxxxx>
CommitDate: Wed, 10 Apr 2013 19:06:26 +0200

x86/mm/numa: Simplify some bit mangling

Minor. Reordered a few lines to lose a superfluous OR operation.

Signed-off-by: Martin Bundgaard <martin@xxxxxxxxxxxx>
Link: http://lkml.kernel.org/r/1363286075-62615-1-git-send-email-martin@xxxxxxxxxxxx
Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx>
---
arch/x86/mm/amdtopology.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/x86/mm/amdtopology.c b/arch/x86/mm/amdtopology.c
index 5247d01..2ca15b5 100644
--- a/arch/x86/mm/amdtopology.c
+++ b/arch/x86/mm/amdtopology.c
@@ -130,9 +130,8 @@ int __init amd_numa_init(void)
}

limit >>= 16;
- limit <<= 24;
- limit |= (1<<24)-1;
limit++;
+ limit <<= 24;

if (limit > end)
limit = end;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/