summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ufs/ufshcd.c
diff options
context:
space:
mode:
authorJaehoon Chung <jh80.chung@samsung.com>2017-03-21 13:19:57 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2017-03-28 03:45:41 +0200
commita3902ee98304324f681088203391b5c0353ce977 (patch)
tree9c3b2ede69943b952e8bb7718b5645750d1439e6 /drivers/scsi/ufs/ufshcd.c
parentscsi: lpfc: fix building without debugfs support (diff)
downloadlinux-a3902ee98304324f681088203391b5c0353ce977.tar.xz
linux-a3902ee98304324f681088203391b5c0353ce977.zip
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>
Diffstat (limited to 'drivers/scsi/ufs/ufshcd.c')
-rw-r--r--drivers/scsi/ufs/ufshcd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
index e8c26e6e6237..096e95b911bd 100644
--- a/drivers/scsi/ufs/ufshcd.c
+++ b/drivers/scsi/ufs/ufshcd.c
@@ -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 */