]> git.baikalelectronics.ru Git - kernel.git/commit
mm/slob.c: remove an unnecessary check for __GFP_ZERO
authorMiles Chen <miles.chen@mediatek.com>
Thu, 16 Nov 2017 01:32:10 +0000 (17:32 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Nov 2017 02:21:01 +0000 (18:21 -0800)
commit7fdc95e3d2bff9e2660e673e89330c07b91f9d57
tree829cea5144d580e3fe7f04b2ad9b880ee39b33e9
parent9d88d7e38211916743ccfc09d931c9da18fd1f51
mm/slob.c: remove an unnecessary check for __GFP_ZERO

Current flow guarantees a valid pointer when handling the __GFP_ZERO
case.  So remove the unnecessary NULL pointer check.

Link: http://lkml.kernel.org/r/1507203141-11959-1-git-send-email-miles.chen@mediatek.com
Signed-off-by: Miles Chen <miles.chen@mediatek.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: 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>
mm/slob.c