summaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
authorAlexandru Moise2015-11-06 03:45:43 +0100
committerLinus Torvalds2015-11-06 04:34:48 +0100
commit40911a798b5abbbec6b2e271a42addd6b26228a0 (patch)
tree28804bff5d9fe24393ff8cc391138122bbf61ac3 /mm/slub.c
parentDoc/slub: document slabinfo-gnuplot.sh script (diff)
downloadkernel-qcow2-linux-40911a798b5abbbec6b2e271a42addd6b26228a0.tar.gz
kernel-qcow2-linux-40911a798b5abbbec6b2e271a42addd6b26228a0.tar.xz
kernel-qcow2-linux-40911a798b5abbbec6b2e271a42addd6b26228a0.zip
mm/slab_common.c: initialize kmem_cache pointer to NULL
The assignment to NULL within the error condition was written in a 2014 patch to suppress a compiler warning. However it would be cleaner to just initialize the kmem_cache to NULL and just return it in case of an error condition. Signed-off-by: Alexandru Moise <00moses.alexander00@gmail.com> Acked-by: Christoph Lameter <cl@linux.com> Cc: Pekka Enberg <penberg@kernel.org> Acked-by: David Rientjes <rientjes@google.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/slub.c')
0 files changed, 0 insertions, 0 deletions