]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm/memcontrol.c: remove NULL assignment on static
authorFabian Frederick <fabf@skynet.be>
Thu, 22 May 2014 00:43:06 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:43:06 +0000 (10:43 +1000)
static values are automatically initialized to NULL

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c

index fa567284fc0315d8a082475cbbeb3b311ddeae15..70841cf8a192c0489f1ec799271cc64a9136cdd5 100644 (file)
@@ -80,7 +80,7 @@ int do_swap_account __read_mostly;
 #ifdef CONFIG_MEMCG_SWAP_ENABLED
 static int really_do_swap_account __initdata = 1;
 #else
-static int really_do_swap_account __initdata = 0;
+static int really_do_swap_account __initdata;
 #endif
 
 #else
@@ -3110,7 +3110,7 @@ int memcg_update_cache_size(struct kmem_cache *s, int num_groups)
 char *memcg_create_cache_name(struct mem_cgroup *memcg,
                              struct kmem_cache *root_cache)
 {
-       static char *buf = NULL;
+       static char *buf;
 
        /*
         * We need a mutex here to protect the shared buffer. Since this is