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 <jh80.chung@samsung.com> Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
223b78ea21
commit
a3902ee983
1 changed files with 0 additions and 2 deletions
|
@ -4662,8 +4662,6 @@ static void __ufshcd_transfer_req_compl(struct ufs_hba *hba,
|
|||
}
|
||||
if (ufshcd_is_clkscaling_supported(hba))
|
||||
hba->clk_scaling.active_reqs--;
|
||||
if (ufshcd_is_clkscaling_supported(hba))
|
||||
hba->clk_scaling.active_reqs--;
|
||||
}
|
||||
|
||||
/* clear corresponding bits of completed commands */
|
||||
|
|
Loading…
Reference in a new issue