OSDN Git Service

scsi: ufs: ufs-qcom: Drop unnecessary NULL checks
authorAndrew Halaney <ahalaney@redhat.com>
Thu, 1 Dec 2022 23:08:07 +0000 (17:08 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 30 Dec 2022 21:10:38 +0000 (21:10 +0000)
commit921a880827498e501921bf034012a97e554550d2
tree812c815193aa221fbf80360ea52cea08edee1b25
parent15a8348707ffd2a37516db9bede88cc0bb467e0b
scsi: ufs: ufs-qcom: Drop unnecessary NULL checks

This code path is only called through one function, and the HBA struct is
already accessed in ufshcd_vops_dbg_register_dump() prior to calling so
there is no way for it to be NULL.

Likewise, the print_fn callback is always supplied within this driver and
is always provided.

Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Reviewed-by: Asutosh Das <quic_asutoshd@quicinc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/host/ufs-qcom.c