aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/test_hmm.c
diff options
context:
space:
mode:
authorXichao Zhao <zhao.xichao@vivo.com>2025-08-19 15:04:57 +0800
committerAndrew Morton <akpm@linux-foundation.org>2025-09-13 16:55:13 -0700
commit1aca4021f8456470fe92ba795886be0e595b927d (patch)
treea08562e0cc214a2c83b38366eaaafd3587e8cf45 /lib/test_hmm.c
parentselftests/mm: test that rmap behaves as expected (diff)
downloadwireguard-linux-1aca4021f8456470fe92ba795886be0e595b927d.tar.xz
wireguard-linux-1aca4021f8456470fe92ba795886be0e595b927d.zip
lib/test_hmm: drop redundant conversion to bool
The result of integer comparison already evaluates to bool. No need for explicit conversion. No functional impact. Link: https://lkml.kernel.org/r/20250819070457.486348-1-zhao.xichao@vivo.com Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com> Reviewed-by: Alistair Popple <apopple@nvidia.com> Cc: Jason Gunthorpe <jgg@ziepe.ca> Cc: Leon Romanovsky <leon@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/test_hmm.c')
-rw-r--r--lib/test_hmm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test_hmm.c b/lib/test_hmm.c
index 761725bc713c..83e3d8208a54 100644
--- a/lib/test_hmm.c
+++ b/lib/test_hmm.c
@@ -140,7 +140,7 @@ static int dmirror_bounce_init(struct dmirror_bounce *bounce,
static bool dmirror_is_private_zone(struct dmirror_device *mdevice)
{
return (mdevice->zone_device_type ==
- HMM_DMIRROR_MEMORY_DEVICE_PRIVATE) ? true : false;
+ HMM_DMIRROR_MEMORY_DEVICE_PRIVATE);
}
static enum migrate_vma_direction