]> 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>
Tue, 4 Mar 2025 05:49:41 +0000 (21:49 -0800)
commitc4f27633aa18db56d05f267f875f9c10e19bf1a2
tree6509e33e33b79ba36260f87a3ef83a05a561701a
parent26c61f8e8d5d753b56ee4c954ed34fa1685a7559
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