scsi: ufs: use PTR_ERR_OR_ZERO in ufs_hisi_get_resource()
Subsystems (2)
PATCH 1/1 scsi: ufs: use PTR_ERR_OR_ZERO in ufs_hisi_get_resource()
Use PTR_ERR_OR_ZERO instead of IF_ERR() return PTR_ERR().
Signed-off-by Joshua Abraham <[email protected]>
--- drivers/scsi/ufs/ufs-hisi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/scsi/ufs/ufs-hisi.c +1 -3
@@ -505,10 +505,8 @@ static int ufs_hisi_get_resource(struct ufs_hisi_host *host)/* get resource of ufs sys ctrl */ mem_res =platform_get_resource (pdev,IORESOURCE_MEM ,1 ); host->ufs_sys_ctrl =devm_ioremap_resource (dev, mem_res); -if (IS_ERR (host->ufs_sys_ctrl)) -return PTR_ERR (host->ufs_sys_ctrl); -return 0 ; +return PTR_ERR_OR_ZERO (host->ufs_sys_ctrl); }static void ufs_hisi_set_pm_lvl (struct ufs_hba *hba)
Signature · 1 line
2.17.1