提交 fa8d3272 编写于 作者: D Dan Carpenter 提交者: Martin K. Petersen

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: f06fcc71 ("scsi: ufs-qcom: add QUniPro hardware support and power optimizations")
Signed-off-by: NDan Carpenter <error27@gmail.com>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 2ebe1615
...@@ -1177,7 +1177,7 @@ static int ufs_qcom_clk_scale_notify(struct ufs_hba *hba, ...@@ -1177,7 +1177,7 @@ static int ufs_qcom_clk_scale_notify(struct ufs_hba *hba,
err = ufs_qcom_clk_scale_down_post_change(hba); err = ufs_qcom_clk_scale_down_post_change(hba);
if (err || !dev_req_params) { if (err) {
ufshcd_uic_hibern8_exit(hba); ufshcd_uic_hibern8_exit(hba);
return err; return err;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册