summaryrefslogtreecommitdiffstats
path: root/mm/swap.c
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2022-05-19 23:08:51 +0200
committerakpm <akpm@linux-foundation.org>2022-05-19 23:08:51 +0200
commitdab8dfff49a673a4b070ad3f44534b3c0e88a189 (patch)
tree67c673013b8adc9e0849ff42d6561d14522cf3e1 /mm/swap.c
parentmm/swap: remove buggy cache->nr check in refill_swap_slots_cache (diff)
downloadlinux-dab8dfff49a673a4b070ad3f44534b3c0e88a189.tar.xz
linux-dab8dfff49a673a4b070ad3f44534b3c0e88a189.zip
mm/swap: remove unneeded p != NULL check in __swap_duplicate
If p is NULL, __swap_duplicate will already return -EINVAL. So if we reach here, p must be non-NULL. Link: https://lkml.kernel.org/r/20220509131416.17553-8-linmiaohe@huawei.com Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Reviewed-by: David Hildenbrand <david@redhat.com> Reviewed-by: Oscar Salvador <osalvador@suse.de> Cc: Alistair Popple <apopple@nvidia.com> Cc: David Howells <dhowells@redhat.com> Cc: Matthew Wilcox <willy@infradead.org> Cc: Naoya Horiguchi <naoya.horiguchi@nec.com> Cc: NeilBrown <neilb@suse.de> Cc: Peter Xu <peterx@redhat.com> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/swap.c')
0 files changed, 0 insertions, 0 deletions