mirror of
https://github.com/torvalds/linux.git
synced 2025-01-01 15:51:46 +00:00
scsi: ufs: ufs-qcom: Remove impossible check
The "dev_req_params" pointer points to inside the middle of a struct so it
can't be NULL. Removing this impossible condition is nice because now we
don't need to consider the correct error code for that situation.
Link: https://lore.kernel.org/r/Y/yA3niWUcGYgBU8@kili
Fixes: f06fcc7155
("scsi: ufs-qcom: add QUniPro hardware support and power optimizations")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
2ebe16155d
commit
fa8d32721a
@ -1177,7 +1177,7 @@ static int ufs_qcom_clk_scale_notify(struct ufs_hba *hba,
|
||||
err = ufs_qcom_clk_scale_down_post_change(hba);
|
||||
|
||||
|
||||
if (err || !dev_req_params) {
|
||||
if (err) {
|
||||
ufshcd_uic_hibern8_exit(hba);
|
||||
return err;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user