Skip to content

Commit fa8d327

Browse files
error27martinkpetersen
authored andcommitted
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: f06fcc7 ("scsi: ufs-qcom: add QUniPro hardware support and power optimizations") Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 2ebe161 commit fa8d327

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ufs/host/ufs-qcom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,7 @@ static int ufs_qcom_clk_scale_notify(struct ufs_hba *hba,
11771177
err = ufs_qcom_clk_scale_down_post_change(hba);
11781178

11791179

1180-
if (err || !dev_req_params) {
1180+
if (err) {
11811181
ufshcd_uic_hibern8_exit(hba);
11821182
return err;
11831183
}

0 commit comments

Comments
 (0)