Message ID | 20221118044136.921-1-cw9316.lee@samsung.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | scsi: ufs: ufs-mediatek: Remove unneeded code | expand |
On Fri, Nov 18, 2022 at 12:50 PM Chanwoo Lee <cw9316.lee@samsung.com> wrote: > > From: ChanWoo Lee <cw9316.lee@samsung.com> > > Remove unnecessary if/goto code. > > Signed-off-by: ChanWoo Lee <cw9316.lee@samsung.com> Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Il 18/11/22 05:41, Chanwoo Lee ha scritto: > From: ChanWoo Lee <cw9316.lee@samsung.com> > > Remove unnecessary if/goto code. > > Signed-off-by: ChanWoo Lee <cw9316.lee@samsung.com> > Reviewed-by: Stanley Chu <stanley.chu@mediatek.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Chanwoo,
> Remove unnecessary if/goto code.
Applied to 6.2/scsi-staging, thanks!
On Fri, 18 Nov 2022 13:41:36 +0900, Chanwoo Lee wrote: > From: ChanWoo Lee <cw9316.lee@samsung.com> > > Remove unnecessary if/goto code. > > Applied to 6.2/scsi-queue, thanks! [1/1] scsi: ufs: ufs-mediatek: Remove unneeded code https://git.kernel.org/mkp/scsi/c/541555285339
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: