Skip to content

Commit 3d82569

Browse files
wb-zjp846396martinkpetersen
authored andcommitted
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 <[email protected]> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=19055 Signed-off-by: Jiapeng Chong <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Shawn Lin <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 4fffffd commit 3d82569

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ufs/host/ufs-rockchip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ static int ufs_rockchip_runtime_suspend(struct device *dev)
265265
clk_disable_unprepare(host->ref_out_clk);
266266

267267
/* Do not power down the genpd if rpm_lvl is less than level 5 */
268-
dev_pm_genpd_rpm_always_on(dev, hba->rpm_lvl < UFS_PM_LVL_5 ? true : false);
268+
dev_pm_genpd_rpm_always_on(dev, hba->rpm_lvl < UFS_PM_LVL_5);
269269

270270
return ufshcd_runtime_suspend(dev);
271271
}

0 commit comments

Comments
 (0)