Explorar o código

x86/mm/numa: Simplify some bit mangling

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>
Martin Bundgaard %!s(int64=12) %!d(string=hai) anos
pai
achega
7e9a2f0a08
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      arch/x86/mm/amdtopology.c

+ 1 - 2
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;