mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-18 16:44:27 +08:00
habanalabs: Simplify bool conversion
Fix the following coccicheck warning: ./drivers/misc/habanalabs/gaudi2/gaudi2.c:9727:48-53: WARNING: conversion to bool not needed here Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
This commit is contained in:
parent
71386e11f2
commit
2d4c09e3f9
@ -9727,7 +9727,7 @@ static int gaudi2_get_mmu_base(struct hl_device *hdev, u64 mmu_id, u32 *mmu_base
|
||||
|
||||
static void gaudi2_ack_mmu_error(struct hl_device *hdev, u64 mmu_id)
|
||||
{
|
||||
bool is_pmmu = (mmu_id == HW_CAP_PMMU ? true : false);
|
||||
bool is_pmmu = (mmu_id == HW_CAP_PMMU);
|
||||
struct gaudi2_device *gaudi2 = hdev->asic_specific;
|
||||
u32 mmu_base;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user