Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ada4ba59 authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds
Browse files

mm/memcontrol.c: remove NULL assignment on static



static values are automatically initialized to NULL

Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent df9024a8
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -80,7 +80,7 @@ int do_swap_account __read_mostly;
#ifdef CONFIG_MEMCG_SWAP_ENABLED
#ifdef CONFIG_MEMCG_SWAP_ENABLED
static int really_do_swap_account __initdata = 1;
static int really_do_swap_account __initdata = 1;
#else
#else
static int really_do_swap_account __initdata = 0;
static int really_do_swap_account __initdata;
#endif
#endif


#else
#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,
char *memcg_create_cache_name(struct mem_cgroup *memcg,
			      struct kmem_cache *root_cache)
			      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
	 * We need a mutex here to protect the shared buffer. Since this is