* Re: [PATCH] scsi: ufs: Remove redundant vops NULL check and trivial wrapper
2026-05-29 6:16 ` [PATCH] scsi: ufs: Remove redundant vops NULL check and trivial wrapper Chanwoo Lee
@ 2026-05-29 9:08 ` Peter Wang (王信友)
2026-05-29 17:36 ` Bart Van Assche
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Peter Wang (王信友) @ 2026-05-29 9:08 UTC (permalink / raw)
To: beanhuo, avri.altman, cw9316.lee, linux-scsi, bvanassche,
linux-kernel, alim.akhtar, adrian.hunter, martin.petersen,
James.Bottomley, can.guo
On Fri, 2026-05-29 at 15:16 +0900, Chanwoo Lee wrote:
> ufshcd_variant_hba_init/exit() check 'if (!hba->vops)' before
> calling vops wrappers, but the wrappers already do NULL check
> internally. Remove the redundant checks. Also remove
> ufshcd_variant_hba_exit() entirely since it only wraps
> ufshcd_vops_exit() with no added value.
>
> 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 redundant vops NULL check and trivial wrapper
2026-05-29 6:16 ` [PATCH] scsi: ufs: Remove redundant vops NULL check and trivial wrapper Chanwoo Lee
2026-05-29 9:08 ` Peter Wang (王信友)
@ 2026-05-29 17:36 ` Bart Van Assche
2026-06-02 2:02 ` 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:36 UTC (permalink / raw)
To: Chanwoo Lee, Alim Akhtar, Avri Altman, James E.J. Bottomley,
Martin K. Petersen, Peter Wang, Bean Huo, Can Guo, Adrian Hunter,
open list:UNIVERSAL FLASH STORAGE HOST CONTROLLER DRIVER,
open list
On 5/28/26 11:16 PM, Chanwoo Lee wrote:
> ufshcd_variant_hba_init/exit() check 'if (!hba->vops)' before
> calling vops wrappers, but the wrappers already do NULL check
> internally. Remove the redundant checks. Also remove
> ufshcd_variant_hba_exit() entirely since it only wraps
> ufshcd_vops_exit() with no added value.
For future patches, please stick to the "one change per patch" rule.
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] scsi: ufs: Remove redundant vops NULL check and trivial wrapper
2026-05-29 6:16 ` [PATCH] scsi: ufs: Remove redundant vops NULL check and trivial wrapper Chanwoo Lee
2026-05-29 9:08 ` Peter Wang (王信友)
2026-05-29 17:36 ` Bart Van Assche
@ 2026-06-02 2:02 ` 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:02 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, Adrian Hunter,
open list:UNIVERSAL FLASH STORAGE HOST CONTROLLER DRIVER,
open list
Chanwoo,
> ufshcd_variant_hba_init/exit() check 'if (!hba->vops)' before
> calling vops wrappers, but the wrappers already do NULL check
> internally. Remove the redundant checks. Also remove
> ufshcd_variant_hba_exit() entirely since it only wraps
> ufshcd_vops_exit() with no added value.
Applied to 7.2/scsi-staging, thanks!
--
Martin K. Petersen
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] scsi: ufs: Remove redundant vops NULL check and trivial wrapper
2026-05-29 6:16 ` [PATCH] scsi: ufs: Remove redundant vops NULL check and trivial wrapper Chanwoo Lee
` (2 preceding siblings ...)
2026-06-02 2:02 ` 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, Adrian Hunter, linux-scsi,
linux-kernel, Chanwoo Lee
Cc: Martin K . Petersen
On Fri, 29 May 2026 15:16:19 +0900, Chanwoo Lee wrote:
> ufshcd_variant_hba_init/exit() check 'if (!hba->vops)' before
> calling vops wrappers, but the wrappers already do NULL check
> internally. Remove the redundant checks. Also remove
> ufshcd_variant_hba_exit() entirely since it only wraps
> ufshcd_vops_exit() with no added value.
>
>
> [...]
Applied to 7.2/scsi-queue, thanks!
[1/1] scsi: ufs: Remove redundant vops NULL check and trivial wrapper
https://git.kernel.org/mkp/scsi/c/0600eec09ad6
--
Martin K. Petersen
^ permalink raw reply [flat|nested] 5+ messages in thread