]> git.ipfire.org Git - thirdparty/linux.git/commit
scsi: ufs: Remove redundant vops NULL check and trivial wrapper
authorChanwoo Lee <cw9316.lee@samsung.com>
Fri, 29 May 2026 06:16:19 +0000 (15:16 +0900)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 2 Jun 2026 02:01:54 +0000 (22:01 -0400)
commit0600eec09ad6cc5ba3ca78aceb6fa8dcbad010bb
treebc7d1b07c47f1e74827c43e762fdb2341609105c
parent6bfc4bfd041d7ddeab9791f0592284585e960be4
scsi: ufs: Remove redundant vops NULL check and trivial wrapper

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>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/20260529061623.301291-1-cw9316.lee@samsung.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshcd.c