]> Gentwo Git Trees - linux/.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>
Sun, 23 Feb 2025 06:25:14 +0000 (22:25 -0800)
commit87140fef33f90348cfa5205912cf1962f8033ad8
tree15b3defa479302e61affd756128b3439b8a72d38
parente42331505dd5fae6de359f20a4166a3e4ab740f8
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