Skip to content

Commit a3902ee

Browse files
jh80chungmartinkpetersen
authored andcommitted
scsi: ufs: remove the duplicated checking for supporting clkscaling
There are same conditions for checking whether supporting clkscaling or not. When ufshcd is supporting clkscaling, active_reqs should be decreased by one. [mkp: addressed comment from Bartlomiej] Signed-off-by: Jaehoon Chung <[email protected]> Reviewed-by: Subhash Jadavani <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 223b78e commit a3902ee

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/scsi/ufs/ufshcd.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4662,8 +4662,6 @@ static void __ufshcd_transfer_req_compl(struct ufs_hba *hba,
46624662
}
46634663
if (ufshcd_is_clkscaling_supported(hba))
46644664
hba->clk_scaling.active_reqs--;
4665-
if (ufshcd_is_clkscaling_supported(hba))
4666-
hba->clk_scaling.active_reqs--;
46674665
}
46684666

46694667
/* clear corresponding bits of completed commands */

0 commit comments

Comments
 (0)