mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 07:47:50 +00:00
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>
This commit is contained in:
committed by
Andrew Morton
parent
c9615059ca
commit
1aca4021f8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user