Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scsi: ufs: ufs-mediatek: Remove unneeded code

Remove unnecessary if/goto code.

Signed-off-by: ChanWoo Lee <cw9316.lee@samsung.com>
Link: https://lore.kernel.org/r/20221118044136.921-1-cw9316.lee@samsung.com
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

ChanWoo Lee and committed by
Martin K. Petersen
54155528 50759b88

-2
-2
drivers/ufs/host/ufs-mediatek.c
··· 441 441 if (ufs_mtk_is_va09_supported(hba)) { 442 442 ufs_mtk_va09_pwr_ctrl(res, 0); 443 443 ret = regulator_disable(host->reg_va09); 444 - if (ret < 0) 445 - goto out; 446 444 } 447 445 } 448 446 out: