* [PATCH] scsi: ufs: Remove unnecessary return in void vops wrappers [not found] <CGME20260529061506epcas1p298f7ccf8e65e713c3cc2b8fc07549dbf@epcas1p2.samsung.com> @ 2026-05-29 6:15 ` Chanwoo Lee 2026-05-29 9:09 ` Peter Wang (王信友) ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: Chanwoo Lee @ 2026-05-29 6:15 UTC (permalink / raw) To: Alim Akhtar, Avri Altman, Bart Van Assche, James E.J. Bottomley, Martin K. Petersen, Peter Wang, Bean Huo, Can Guo, Rafael J. Wysocki, vamshi gajjela, Chanwoo Lee, open list:UNIVERSAL FLASH STORAGE HOST CONTROLLER DRIVER, open list ufshcd_vops_exit(), ufshcd_vops_setup_task_mgmt(), and ufshcd_vops_hibern8_notify() use 'return hba->vops->xxx()' while other void vops wrappers call without return. Remove the unnecessary return keywords for consistency. Signed-off-by: Chanwoo Lee <cw9316.lee@samsung.com> --- drivers/ufs/core/ufshcd-priv.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/ufs/core/ufshcd-priv.h b/drivers/ufs/core/ufshcd-priv.h index 70f90d97f217..e55c2a02c1f5 100644 --- a/drivers/ufs/core/ufshcd-priv.h +++ b/drivers/ufs/core/ufshcd-priv.h @@ -132,7 +132,7 @@ static inline const char *ufshcd_get_var_name(struct ufs_hba *hba) static inline void ufshcd_vops_exit(struct ufs_hba *hba) { if (hba->vops && hba->vops->exit) - return hba->vops->exit(hba); + hba->vops->exit(hba); } static inline u32 ufshcd_vops_get_ufs_hci_version(struct ufs_hba *hba) @@ -211,7 +211,7 @@ static inline void ufshcd_vops_setup_task_mgmt(struct ufs_hba *hba, int tag, u8 tm_function) { if (hba->vops && hba->vops->setup_task_mgmt) - return hba->vops->setup_task_mgmt(hba, tag, tm_function); + hba->vops->setup_task_mgmt(hba, tag, tm_function); } static inline void ufshcd_vops_hibern8_notify(struct ufs_hba *hba, @@ -219,7 +219,7 @@ static inline void ufshcd_vops_hibern8_notify(struct ufs_hba *hba, enum ufs_notify_change_status status) { if (hba->vops && hba->vops->hibern8_notify) - return hba->vops->hibern8_notify(hba, cmd, status); + hba->vops->hibern8_notify(hba, cmd, status); } static inline int ufshcd_vops_apply_dev_quirks(struct ufs_hba *hba) -- 2.43.0 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] scsi: ufs: Remove unnecessary return in void vops wrappers 2026-05-29 6:15 ` [PATCH] scsi: ufs: Remove unnecessary return in void vops wrappers Chanwoo Lee @ 2026-05-29 9:09 ` Peter Wang (王信友) 2026-05-29 17:35 ` Bart Van Assche ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: Peter Wang (王信友) @ 2026-05-29 9:09 UTC (permalink / raw) To: beanhuo, avri.altman, vamshigajjela, cw9316.lee, linux-scsi, bvanassche, linux-kernel, alim.akhtar, rafael.j.wysocki, martin.petersen, James.Bottomley, can.guo On Fri, 2026-05-29 at 15:15 +0900, Chanwoo Lee wrote: > ufshcd_vops_exit(), ufshcd_vops_setup_task_mgmt(), and > ufshcd_vops_hibern8_notify() use 'return hba->vops->xxx()' > while other void vops wrappers call without return. > Remove the unnecessary return keywords for consistency. > > Signed-off-by: Chanwoo Lee <cw9316.lee@samsung.com> Reviewed-by: Peter Wang <peter.wang@mediatek.com> ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] scsi: ufs: Remove unnecessary return in void vops wrappers 2026-05-29 6:15 ` [PATCH] scsi: ufs: Remove unnecessary return in void vops wrappers Chanwoo Lee 2026-05-29 9:09 ` Peter Wang (王信友) @ 2026-05-29 17:35 ` Bart Van Assche 2026-06-02 2:00 ` Martin K. Petersen 2026-06-09 1:38 ` Martin K. Petersen 3 siblings, 0 replies; 5+ messages in thread From: Bart Van Assche @ 2026-05-29 17:35 UTC (permalink / raw) To: Chanwoo Lee, Alim Akhtar, Avri Altman, James E.J. Bottomley, Martin K. Petersen, Peter Wang, Bean Huo, Can Guo, Rafael J. Wysocki, vamshi gajjela, open list:UNIVERSAL FLASH STORAGE HOST CONTROLLER DRIVER, open list On 5/28/26 11:15 PM, Chanwoo Lee wrote: > ufshcd_vops_exit(), ufshcd_vops_setup_task_mgmt(), and > ufshcd_vops_hibern8_notify() use 'return hba->vops->xxx()' > while other void vops wrappers call without return. > Remove the unnecessary return keywords for consistency. Reviewed-by: Bart Van Assche <bvanassche@acm.org> ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] scsi: ufs: Remove unnecessary return in void vops wrappers 2026-05-29 6:15 ` [PATCH] scsi: ufs: Remove unnecessary return in void vops wrappers Chanwoo Lee 2026-05-29 9:09 ` Peter Wang (王信友) 2026-05-29 17:35 ` Bart Van Assche @ 2026-06-02 2:00 ` Martin K. Petersen 2026-06-09 1:38 ` Martin K. Petersen 3 siblings, 0 replies; 5+ messages in thread From: Martin K. Petersen @ 2026-06-02 2:00 UTC (permalink / raw) To: Chanwoo Lee Cc: Alim Akhtar, Avri Altman, Bart Van Assche, James E.J. Bottomley, Martin K. Petersen, Peter Wang, Bean Huo, Can Guo, Rafael J. Wysocki, vamshi gajjela, open list:UNIVERSAL FLASH STORAGE HOST CONTROLLER DRIVER, open list Chanwoo, > ufshcd_vops_exit(), ufshcd_vops_setup_task_mgmt(), and > ufshcd_vops_hibern8_notify() use 'return hba->vops->xxx()' while other > void vops wrappers call without return. Remove the unnecessary return > keywords for consistency. Applied to 7.2/scsi-staging, thanks! -- Martin K. Petersen ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] scsi: ufs: Remove unnecessary return in void vops wrappers 2026-05-29 6:15 ` [PATCH] scsi: ufs: Remove unnecessary return in void vops wrappers Chanwoo Lee ` (2 preceding siblings ...) 2026-06-02 2:00 ` Martin K. Petersen @ 2026-06-09 1:38 ` Martin K. Petersen 3 siblings, 0 replies; 5+ messages in thread From: Martin K. Petersen @ 2026-06-09 1:38 UTC (permalink / raw) To: Alim Akhtar, Avri Altman, Bart Van Assche, James E.J. Bottomley, Peter Wang, Bean Huo, Can Guo, Rafael J. Wysocki, vamshi gajjela, linux-scsi, linux-kernel, Chanwoo Lee Cc: Martin K . Petersen On Fri, 29 May 2026 15:15:00 +0900, Chanwoo Lee wrote: > ufshcd_vops_exit(), ufshcd_vops_setup_task_mgmt(), and > ufshcd_vops_hibern8_notify() use 'return hba->vops->xxx()' > while other void vops wrappers call without return. > Remove the unnecessary return keywords for consistency. > > Applied to 7.2/scsi-queue, thanks! [1/1] scsi: ufs: Remove unnecessary return in void vops wrappers https://git.kernel.org/mkp/scsi/c/6bfc4bfd041d -- Martin K. Petersen ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-06-09 1:39 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CGME20260529061506epcas1p298f7ccf8e65e713c3cc2b8fc07549dbf@epcas1p2.samsung.com>
2026-05-29 6:15 ` [PATCH] scsi: ufs: Remove unnecessary return in void vops wrappers Chanwoo Lee
2026-05-29 9:09 ` Peter Wang (王信友)
2026-05-29 17:35 ` Bart Van Assche
2026-06-02 2:00 ` Martin K. Petersen
2026-06-09 1:38 ` Martin K. Petersen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®