mm/filemap: avoid type conversion
authorHongbo Li <lihongbo22@huawei.com>
Mon, 8 Jan 2024 04:48:15 +0000 (12:48 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 22 Feb 2024 00:00:02 +0000 (16:00 -0800)
commit6212eb4d7a636bdfe0c11c84aa90db3fb5e6a0ff
tree4c16fd961e61fb0ed2a69b6f5e6c8c311cdac033
parent9eda317c15ff13be621d219a5de365d1550f41f7
mm/filemap: avoid type conversion

The return type of function folio_test_hugetlb is bool type, there is no
need to assign it to an integer type.

Link: https://lkml.kernel.org/r/20240108044815.3291487-1-lihongbo22@huawei.com
Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/filemap.c