]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
x86/mm/numa: Simplify some bit mangling
authorMartin Bundgaard <martin@mindflux.org>
Thu, 14 Mar 2013 18:34:35 +0000 (19:34 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 10 Apr 2013 17:06:26 +0000 (19:06 +0200)
Minor. Reordered a few lines to lose a superfluous OR operation.

Signed-off-by: Martin Bundgaard <martin@mindflux.org>
Link: http://lkml.kernel.org/r/1363286075-62615-1-git-send-email-martin@mindflux.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/mm/amdtopology.c

index 5247d01329ca96de7e9eacbb3f2511ff8f9c3a59..2ca15b59fb3f823a0e900918bac6042b49ec2fab 100644 (file)
@@ -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;