mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 commit95a4774d05("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 commitba72b4c8cf("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]>
This commit is contained in:
parent
9f82883c6d
commit
5ed867037e
1 changed files with 0 additions and 3 deletions
|
|
@ -896,9 +896,6 @@ static void clear_hwpoisoned_pages(struct page *memmap, int nr_pages)
|
|||
{
|
||||
int i;
|
||||
|
||||
if (!memmap)
|
||||
return;
|
||||
|
||||
/*
|
||||
* A further optimization is to have per section refcounted
|
||||
* num_poisoned_pages. But that would need more space per memmap, so
|
||||
|
|
|
|||
Loading…
Reference in a new issue