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 unnecessary return code

Modify to remove unnecessary 'return 0' code.

Signed-off-by: ChanWoo Lee <cw9316.lee@samsung.com>
Link: https://lore.kernel.org/r/20221121003338.11034-1-cw9316.lee@samsung.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

ChanWoo Lee and committed by
Martin K. Petersen
d29c32ef ee8c88ca

+4 -7
+4 -7
drivers/ufs/host/ufs-mediatek.c
··· 1095 1095 } 1096 1096 } 1097 1097 1098 - static int ufs_mtk_post_link(struct ufs_hba *hba) 1098 + static void ufs_mtk_post_link(struct ufs_hba *hba) 1099 1099 { 1100 1100 /* enable unipro clock gating feature */ 1101 1101 ufs_mtk_cfg_unipro_cg(hba, true); ··· 1106 1106 FIELD_PREP(UFSHCI_AHIBERN8_SCALE_MASK, 3); 1107 1107 1108 1108 ufs_mtk_setup_clk_gating(hba); 1109 - 1110 - return 0; 1111 1109 } 1112 1110 1113 1111 static int ufs_mtk_link_startup_notify(struct ufs_hba *hba, ··· 1118 1120 ret = ufs_mtk_pre_link(hba); 1119 1121 break; 1120 1122 case POST_CHANGE: 1121 - ret = ufs_mtk_post_link(hba); 1123 + ufs_mtk_post_link(hba); 1122 1124 break; 1123 1125 default: 1124 1126 ret = -EINVAL; ··· 1270 1272 struct arm_smccc_res res; 1271 1273 1272 1274 if (status == PRE_CHANGE) { 1273 - if (!ufshcd_is_auto_hibern8_supported(hba)) 1274 - return 0; 1275 - ufs_mtk_auto_hibern8_disable(hba); 1275 + if (ufshcd_is_auto_hibern8_supported(hba)) 1276 + ufs_mtk_auto_hibern8_disable(hba); 1276 1277 return 0; 1277 1278 } 1278 1279