Skip to content

Commit 6159d0f

Browse files
RichardWeiYangtorvalds
authored andcommitted
mm/slub.c: page is always non-NULL in node_match()
node_match() is a static function and is only invoked in slub.c. In all three places, `page' is ensured to be valid. Link: http://lkml.kernel.org/r/20181106150245.1668-1-richard.weiyang@gmail.com Signed-off-by: Wei Yang <richard.weiyang@gmail.com> Acked-by: 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>
1 parent 1265ef2 commit 6159d0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/slub.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2369,7 +2369,7 @@ static int slub_cpu_dead(unsigned int cpu)
23692369
static inline int node_match(struct page *page, int node)
23702370
{
23712371
#ifdef CONFIG_NUMA
2372-
if (!page || (node != NUMA_NO_NODE && page_to_nid(page) != node))
2372+
if (node != NUMA_NO_NODE && page_to_nid(page) != node)
23732373
return 0;
23742374
#endif
23752375
return 1;

0 commit comments

Comments
 (0)