]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: ufs: ufs-qcom: Remove redundant re-assignment to hs_rate
authorRam Kumar Dwivedi <quic_rdwivedi@quicinc.com>
Wed, 17 Sep 2025 14:09:31 +0000 (19:39 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 25 Sep 2025 02:27:47 +0000 (22:27 -0400)
commitd471a075ae019118fa2e1bd251bad7e98d97b49e
tree368dd9676a5e8f2d33dd14e11c73e9d21138e515
parent91945660ac29341710b0914db200f6eacf251513
scsi: ufs: ufs-qcom: Remove redundant re-assignment to hs_rate

Remove the redundant else block that assigns PA_HS_MODE_B to hs_rate, as
it is already assigned in ufshcd_init_host_params(). This avoids
unnecessary reassignment and prevents overwriting hs_rate when it is
explicitly set to a different value.

Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Ram Kumar Dwivedi <quic_rdwivedi@quicinc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/host/ufs-qcom.c