diff options
author | 2025-02-26 10:11:57 +0800 | |
---|---|---|
committer | 2025-03-03 22:11:47 -0500 | |
commit | 3d82569039340045faeaf14293956487c3498012 (patch) | |
tree | 7fd036fe723474cf6065dd575b88582ff83fced1 | |
parent | scsi: ufs: rockchip: Fix devm_clk_bulk_get_all_enabled() return value (diff) | |
download | wireguard-linux-3d82569039340045faeaf14293956487c3498012.tar.xz wireguard-linux-3d82569039340045faeaf14293956487c3498012.zip |
scsi: ufs: rockchip: Simplify bool conversion
./drivers/ufs/host/ufs-rockchip.c:268:70-75: WARNING: conversion to bool not needed here.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=19055
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Link: https://lore.kernel.org/r/20250226021157.77934-1-jiapeng.chong@linux.alibaba.com
Acked-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r-- | drivers/ufs/host/ufs-rockchip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ufs/host/ufs-rockchip.c b/drivers/ufs/host/ufs-rockchip.c index 8b327c724908..8754085dd0cc 100644 --- a/drivers/ufs/host/ufs-rockchip.c +++ b/drivers/ufs/host/ufs-rockchip.c @@ -265,7 +265,7 @@ static int ufs_rockchip_runtime_suspend(struct device *dev) clk_disable_unprepare(host->ref_out_clk); /* Do not power down the genpd if rpm_lvl is less than level 5 */ - dev_pm_genpd_rpm_always_on(dev, hba->rpm_lvl < UFS_PM_LVL_5 ? true : false); + dev_pm_genpd_rpm_always_on(dev, hba->rpm_lvl < UFS_PM_LVL_5); return ufshcd_runtime_suspend(dev); } |