scsi: ufs: remove the duplicated checking for supporting clkscaling
authorJaehoon Chung <jh80.chung@samsung.com>
Tue, 21 Mar 2017 12:19:57 +0000 (21:19 +0900)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 28 Mar 2017 01:45:41 +0000 (21:45 -0400)
commita3902ee98304324f681088203391b5c0353ce977
tree9c3b2ede69943b952e8bb7718b5645750d1439e6
parent223b78ea212852726dfa86ef267a9c8a323d5cc2
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>
drivers/scsi/ufs/ufshcd.c