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)
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

index e8c26e6e623726fe15f8e40ddafa089d68869c33..096e95b911bd7b29abf2c06a58191b76ce0a4139 100644 (file)
@@ -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 */