]> 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>
Fri, 28 Feb 2025 00:59:50 +0000 (16:59 -0800)
commit92e6ed4bae46874ac4c010210eb18e4d2c678f3e
tree7bdf8d988f247f4a6659cb6f1aa3cf966fd587a2
parent2283d0b94b5b3617b5a1056d35a04c36a9e6cf8f
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