mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-13 14:04:05 +08:00
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
@ -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 New Issue
Block a user