]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/swapfile.c: remove the unneeded checking
authorBaoquan He <bhe@redhat.com>
Wed, 5 Feb 2025 09:27:18 +0000 (17:27 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 17 Mar 2025 05:06:07 +0000 (22:06 -0700)
commitac2d3268284ba4e254e4ca346bf6d63fb8a17518
treeadae3b58bcd6cde77f21c3184634f9a486de5c66
parente89c45c700e7d9ab4913ec98f1fe9f23d46c1397
mm/swapfile.c: remove the unneeded checking

In free_swap_and_cache_nr(), invocation of get_swap_device() has done the
checking if it's a swap entry.  So remove the redundant checking here.

Link: https://lkml.kernel.org/r/20250205092721.9395-10-bhe@redhat.com
Signed-off-by: Baoquan He <bhe@redhat.com>
Cc: Chris Li <chrisl@kernel.org>
Cc: Kairui Song <ryncsn@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/swapfile.c