Commit 0600eec
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>1 parent 6bfc4bf commit 0600eec
1 file changed
Lines changed: 2 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9854 | 9854 | | |
9855 | 9855 | | |
9856 | 9856 | | |
9857 | | - | |
9858 | | - | |
9859 | | - | |
9860 | | - | |
| 9857 | + | |
9861 | 9858 | | |
9862 | | - | |
9863 | 9859 | | |
9864 | 9860 | | |
9865 | 9861 | | |
9866 | 9862 | | |
9867 | | - | |
9868 | 9863 | | |
9869 | 9864 | | |
9870 | 9865 | | |
9871 | | - | |
9872 | | - | |
9873 | | - | |
9874 | | - | |
9875 | | - | |
9876 | | - | |
9877 | | - | |
9878 | | - | |
9879 | 9866 | | |
9880 | 9867 | | |
9881 | 9868 | | |
| |||
9943 | 9930 | | |
9944 | 9931 | | |
9945 | 9932 | | |
9946 | | - | |
| 9933 | + | |
9947 | 9934 | | |
9948 | 9935 | | |
9949 | 9936 | | |
| |||
0 commit comments