diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2017-03-21 21:19:57 +0900 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-03-27 21:45:41 -0400 |
commit | a3902ee98304324f681088203391b5c0353ce977 (patch) | |
tree | 9c3b2ede69943b952e8bb7718b5645750d1439e6 | |
parent | 223b78ea212852726dfa86ef267a9c8a323d5cc2 (diff) | |
download | blackbird-op-linux-a3902ee98304324f681088203391b5c0353ce977.tar.gz blackbird-op-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>
-rw-r--r-- | drivers/scsi/ufs/ufshcd.c | 2 |
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 */ |