From patchwork Tue Mar 21 12:19:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 9636527 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DF3D060216 for ; Tue, 21 Mar 2017 12:21:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D4DF123201 for ; Tue, 21 Mar 2017 12:21:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C832F27DA4; Tue, 21 Mar 2017 12:21:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 637AC23201 for ; Tue, 21 Mar 2017 12:21:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757281AbdCUMUE (ORCPT ); Tue, 21 Mar 2017 08:20:04 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:41600 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756389AbdCUMUC (ORCPT ); Tue, 21 Mar 2017 08:20:02 -0400 Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0ON500RY4ZLB7F80@mailout3.samsung.com>; Tue, 21 Mar 2017 21:19:59 +0900 (KST) Received: from epsmges1p2.samsung.com (unknown [182.195.40.65]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20170321121959epcas1p4e0456026c86a3748a241a9fa5fddf138~t5PZ6rX-r3157731577epcas1p47; Tue, 21 Mar 2017 12:19:58 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 43.3E.06709.E6A11D85; Tue, 21 Mar 2017 21:19:58 +0900 (KST) Received: from epcpsbgm1new.samsung.com (u26.gpu120.samsung.co.kr [203.254.230.26]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20170321121957epcas1p3ccd834d3ac572a1858684e8ab4bb24e1~t5PY8vKKu0233302333epcas1p3N; Tue, 21 Mar 2017 12:19:57 +0000 (GMT) X-AuditID: b6c32a36-f79c56d000001a35-da-58d11a6edad9 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id 9E.BE.06425.D6A11D85; Tue, 21 Mar 2017 21:19:57 +0900 (KST) Received: from localhost.localdomain ([10.113.62.216]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0ON500I50ZL9BYB0@mmp2.samsung.com>; Tue, 21 Mar 2017 21:19:57 +0900 (KST) From: Jaehoon Chung To: linux-scsi@vger.kernel.org Cc: vinholikatti@gmail.com, martin.petersen@oracle.com, linux-kernel@vger.kernel.org, Jaehoon Chung Subject: [PATCH] scsi: ufs: remove the duplicated checking for supporting clkscaling Date: Tue, 21 Mar 2017 21:19:57 +0900 Message-id: <20170321121957.18655-1-jh80.chung@samsung.com> X-Mailer: git-send-email 2.10.2 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrEKsWRmVeSWpSXmKPExsWy7bCmrm6e1MUIgxtnLS1u/Gpjtbi8aw6b Rff1HWwWy4//Y7LYsbDKgdVj56y77B4fn95i8ejbsorR4/MmuQCWqFSbjNTElNQihdS85PyU zLx0WyXv4HjneFMzA0NdQ0sLcyWFvMTcVFslF58AXbfMHK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bk7fywZhi0lcuLceyObiEBKYxShx48IHVgjnB6PE3n1L2EGq2AR0 JLZ/O84EYosIyElsXv6VpYuRg4NZoE5iWnccSFhYIExix9ddYAtYBFQl9p3tA1vAK2AtsXPm DqjF8hILzx9hmsDIvYCRYRWjRGpBckFxUnquYV5quV5xYm5xaV66XnJ+7iZGcAA+k9rBeHCX +yFGAQ5GJR7eFVfORwixJpYVV+YeYpTgYFYS4V0udDFCiDclsbIqtSg/vqg0J7X4EKMp0AET maVEk/OB0ZFXEm9oYm5ibmxgYW5paWKkJM7bOPtZuJBAemJJanZqakFqEUwfEwenVAPjkp9L Vi6O2GKyU3VRyv2yY4fjfxvZNTRpWJ4WMV98wEWF9cgNs+5lGVI5u1/Yp66RjZk4U87+8t3z SqmRsyOK/JtiNTqWPG8ImbiMhWPHk5cOxT6ShYa3T96P3urM+Mmz4NLm0lq1wAfWlydpCz+1 SN2y4eXLyK0blz4xe7O+UNUj6e6RMyFdSizFGYmGWsxFxYkA3mqzqFYCAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170321121957epcas1p3ccd834d3ac572a1858684e8ab4bb24e1 X-Msg-Generator: CA X-Sender-IP: 203.254.230.26 X-Local-Sender: =?UTF-8?B?7KCV7J6s7ZuIG1RpemVuIFBsYXRmb3JtIExhYihTL1fshLw=?= =?UTF-8?B?7YSwKRvsgrzshLHsoITsnpAbU2VuaW9yIEVuZ2luZWVy?= X-Global-Sender: =?UTF-8?B?SmFlaG9vbiBDaHVuZxtUaXplbiBQbGF0Zm9ybSBMYWIuG1Nh?= =?UTF-8?B?bXN1bmcgRWxlY3Ryb25pY3MbU2VuaW9yIEVuZ2luZWVy?= X-Sender-Code: =?UTF-8?B?QzEwG1NUQUYbQzEwVjgxMTE=?= CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-HopCount: 7 X-CMS-RootMailID: 20170321121957epcas1p3ccd834d3ac572a1858684e8ab4bb24e1 X-RootMTR: 20170321121957epcas1p3ccd834d3ac572a1858684e8ab4bb24e1 References: Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There are same conditions for checking whether supporting clkscaling or not. When ufshcd is supporting clkscaling, active_reqs should be decreased by two. Signed-off-by: Jaehoon Chung Reviewed-by: Subhash Jadavani --- drivers/scsi/ufs/ufshcd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index dc6efbd..f2cbc71 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -4598,8 +4598,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 */