diff options
author | Joonsoo Kim <iamjoonsoo.kim@lge.com> | 2014-08-06 19:04:38 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-06 21:01:14 -0400 |
commit | a640616822b2c3a8009b0600f20c4a76ea8a0025 (patch) | |
tree | 5aa3a09fd7bd1da661871fea2a4a347d826e085e /mm/slab.c | |
parent | 367f7f2f45e7f601bcf87aeffb0c81e6d26e53df (diff) |
slab: remove BAD_ALIEN_MAGIC
BAD_ALIEN_MAGIC value isn't used anymore. So remove it.
Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Acked-by: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -470,8 +470,6 @@ static struct kmem_cache kmem_cache_boot = { | |||
470 | .name = "kmem_cache", | 470 | .name = "kmem_cache", |
471 | }; | 471 | }; |
472 | 472 | ||
473 | #define BAD_ALIEN_MAGIC 0x01020304ul | ||
474 | |||
475 | static DEFINE_PER_CPU(struct delayed_work, slab_reap_work); | 473 | static DEFINE_PER_CPU(struct delayed_work, slab_reap_work); |
476 | 474 | ||
477 | static inline struct array_cache *cpu_cache_get(struct kmem_cache *cachep) | 475 | static inline struct array_cache *cpu_cache_get(struct kmem_cache *cachep) |
@@ -838,7 +836,7 @@ static int transfer_objects(struct array_cache *to, | |||
838 | static inline struct alien_cache **alloc_alien_cache(int node, | 836 | static inline struct alien_cache **alloc_alien_cache(int node, |
839 | int limit, gfp_t gfp) | 837 | int limit, gfp_t gfp) |
840 | { | 838 | { |
841 | return (struct alien_cache **)BAD_ALIEN_MAGIC; | 839 | return NULL; |
842 | } | 840 | } |
843 | 841 | ||
844 | static inline void free_alien_cache(struct alien_cache **ac_ptr) | 842 | static inline void free_alien_cache(struct alien_cache **ac_ptr) |