aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorAlastair D'Silva <[email protected]>2019-09-23 15:36:33 -0700
committerLinus Torvalds <[email protected]>2019-09-24 15:54:09 -0700
commit5ed867037eb1f15b7e8cc92497671fd4b3864e4a (patch)
tree06c78c883a2bee88954c4257bcd2403cd3c0ed1c /lib/mpi/mpi-cmp.c
parent9f82883c6d9af516c2a7f9fe85eb09e9c25bbe0a (diff)
mm/sparse.c: remove NULL check in clear_hwpoisoned_pages()
There is no possibility for memmap to be NULL in the current codebase. This check was added in commit 95a4774d055c ("memory-hotplug: update mce_bad_pages when removing the memory") where memmap was originally inited to NULL, and only conditionally given a value. The code that could have passed a NULL has been removed by commit ba72b4c8cf60 ("mm/sparsemem: support sub-section hotplug"), so there is no longer a possibility that memmap can be NULL. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Alastair D'Silva <[email protected]> Acked-by: Michal Hocko <[email protected]> Reviewed-by: David Hildenbrand <[email protected]> Cc: Mike Rapoport <[email protected]> Cc: Wei Yang <[email protected]> Cc: Qian Cai <[email protected]> Cc: Alexander Duyck <[email protected]> Cc: Logan Gunthorpe <[email protected]> Cc: Baoquan He <[email protected]> Cc: Balbir Singh <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions