]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ksm-trivial-tidyups-fix
authorHugh Dickins <hughd@google.com>
Wed, 20 Feb 2013 02:14:50 +0000 (13:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:52 +0000 (16:52 +1100)
Suggested by akpm: make DO_NUMA(x) do { (x); } while (0) more like the #else.

Signed-off-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/ksm.c

index b72d9729f76dda5643d7628b82f820158f729c69..e10dc24508f4c4e20fe37523bf3470da8f936611 100644 (file)
--- a/mm/ksm.c
+++ b/mm/ksm.c
@@ -43,7 +43,7 @@
 
 #ifdef CONFIG_NUMA
 #define NUMA(x)                (x)
-#define DO_NUMA(x)     (x)
+#define DO_NUMA(x)     do { (x); } while (0)
 #else
 #define NUMA(x)                (0)
 #define DO_NUMA(x)     do { } while (0)