From: Xichao Zhao Date: Tue, 19 Aug 2025 07:04:57 +0000 (+0800) Subject: lib/test_hmm: drop redundant conversion to bool X-Git-Tag: v6.18-rc1~130^2~249 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1aca4021f8456470fe92ba795886be0e595b927d;p=thirdparty%2Flinux.git 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 Reviewed-by: Alistair Popple Cc: Jason Gunthorpe Cc: Leon Romanovsky Signed-off-by: Andrew Morton --- diff --git a/lib/test_hmm.c b/lib/test_hmm.c index 761725bc713cd..83e3d8208a540 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