[PATCH] scsi: ufs: ufs-mediatek: Remove unneeded code

Chanwoo Lee cw9316.lee at samsung.com
Thu Nov 17 20:41:36 PST 2022


From: ChanWoo Lee <cw9316.lee at samsung.com>

Remove unnecessary if/goto code.

Signed-off-by: ChanWoo Lee <cw9316.lee at samsung.com>
---
 drivers/ufs/host/ufs-mediatek.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/ufs/host/ufs-mediatek.c b/drivers/ufs/host/ufs-mediatek.c
index 7309f3f87eac..7d13878dff47 100644
--- a/drivers/ufs/host/ufs-mediatek.c
+++ b/drivers/ufs/host/ufs-mediatek.c
@@ -441,8 +441,6 @@ static int ufs_mtk_mphy_power_on(struct ufs_hba *hba, bool on)
 		if (ufs_mtk_is_va09_supported(hba)) {
 			ufs_mtk_va09_pwr_ctrl(res, 0);
 			ret = regulator_disable(host->reg_va09);
-			if (ret < 0)
-				goto out;
 		}
 	}
 out:
-- 
2.29.0




More information about the Linux-mediatek mailing list