From patchwork Fri Nov 18 04:41:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Lee X-Patchwork-Id: 13047719 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5421EC4332F for ; Fri, 18 Nov 2022 04:42:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234710AbiKREmi (ORCPT ); Thu, 17 Nov 2022 23:42:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230287AbiKREmg (ORCPT ); Thu, 17 Nov 2022 23:42:36 -0500 Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C7202E9EF for ; Thu, 17 Nov 2022 20:42:34 -0800 (PST) Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20221118044229epoutp0249ce9c72440efc57e617e32ca77cb6b5~olCUjXWAF2270022700epoutp02Q for ; Fri, 18 Nov 2022 04:42:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20221118044229epoutp0249ce9c72440efc57e617e32ca77cb6b5~olCUjXWAF2270022700epoutp02Q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1668746549; bh=MlF1sZiYBVQ0qZEpubzGClUXF5vF7cVXiXBcKx7fIkA=; h=From:To:Cc:Subject:Date:References:From; b=QrvDvJ/WkbVHQev9pRGwMH4JG23snzbs9TE889n9tWrLvoMPLAflEg0F5I9kUhRrS VQDiESSI5yg7YkmOb6hT7+31b2tEpD7lhhnIyg47XVU6ixdW6loWOww2QZzqV9nzaE RyTnqy0I6KdfODd6Fzh8cBb+XwsqqDnrrjwyQ6ls= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20221118044228epcas1p22573e3f3a53081fb39e56f7fe08de71d~olCUIYyen1731817318epcas1p21; Fri, 18 Nov 2022 04:42:28 +0000 (GMT) Received: from epsmges1p1.samsung.com (unknown [182.195.38.247]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4ND3zm08vjz4x9Pq; Fri, 18 Nov 2022 04:42:28 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p1.samsung.com (Symantec Messaging Gateway) with SMTP id 79.A3.07146.F2D07736; Fri, 18 Nov 2022 13:42:23 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p1.samsung.com (KnoxPortal) with ESMTPA id 20221118044223epcas1p12eab9a6fb08ec382625b3fb43f401e07~olCPZV-NC2823128231epcas1p1Q; Fri, 18 Nov 2022 04:42:23 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20221118044223epsmtrp183d4feab942c8753f658dc9b6e661741~olCPYe4mD0345403454epsmtrp1F; Fri, 18 Nov 2022 04:42:23 +0000 (GMT) X-AuditID: b6c32a35-205ff70000021bea-23-63770d2f24f0 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id AE.36.14392.F2D07736; Fri, 18 Nov 2022 13:42:23 +0900 (KST) Received: from localhost.localdomain (unknown [10.253.100.232]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20221118044223epsmtip1c5765ba1b29903bc5dad98061bc543ea~olCPJW4Zq2640026400epsmtip1c; Fri, 18 Nov 2022 04:42:23 +0000 (GMT) From: Chanwoo Lee To: stanley.chu@mediatek.com, jejb@linux.ibm.com, martin.petersen@oracle.com, matthias.bgg@gmail.com, linux-scsi@vger.kernel.org, linux-mediatek@lists.infradead.org Cc: ChanWoo Lee Subject: [PATCH] scsi: ufs: ufs-mediatek: Remove unneeded code Date: Fri, 18 Nov 2022 13:41:36 +0900 Message-Id: <20221118044136.921-1-cw9316.lee@samsung.com> X-Mailer: git-send-email 2.29.0 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpjk+LIzCtJLcpLzFFi42LZdlhTT9eYtzzZYEm7iMWMU22sFotubGOy uNx8kdGi+/oONovlx/8xWTS1GFss3XqT0YHdY+esu+weExYdYPTYvKTeo+XkfhaPj09vsXj0 bVnF6PF5k1wAe1S2TUZqYkpqkUJqXnJ+SmZeuq2Sd3C8c7ypmYGhrqGlhbmSQl5ibqqtkotP gK5bZg7QOUoKZYk5pUChgMTiYiV9O5ui/NKSVIWM/OISW6XUgpScArMCveLE3OLSvHS9vNQS K0MDAyNToMKE7IyZk/YyF2xirXj88gBbA+Nuli5GTg4JAROJ92+XMIHYQgI7GCVOnM7oYuQC sj8xSnzaeIwRIvGNUWLHzGCYhqUtF1gg4nsZJXofWkM0fGGU2DZnBlCCg4NNQEvi9jFvkLiI wApGiauHn4E1MAtoSJyc9YQdxBYWsJNYfmEFWD2LgKrEhHY5kDCvgKXEmytHGSF2yUv8ud/D DBEXlDg58wnUGHmJ5q2zmUHmSwjcYpf4NXMVO0SDi8TKB29YIWxhiVfHt0DFpSRe9rexQzQ0 Ax369RIThNPBKLGx9QXUOmOJT58/M4JcxCygKbF+lz5EWFFi5++5jBCb+STefe1hBSmREOCV 6GgTgihRkZjTdY4NZtfHG4+hbvCQeLd5OTsksGIldj3azDqBUX4Wkn9mIflnFsLiBYzMqxjF UguKc9NTiw0LDOFxmpyfu4kRnCC1THcwTnz7Qe8QIxMH4yFGCQ5mJRHe3IulyUK8KYmVValF +fFFpTmpxYcYTYEBPJFZSjQ5H5ii80riDU0sDUzMjEws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C7cec oLO2AkazLTx22ihs/vlthdws6U/LU8zVG1ki9xeL23/dZHlh6Rc5j2txuh/qrYtLavw6/4vu lxfTvSV48ivPWXWRR+w9XLNOfOCfVr21/87eezpLnKecOf5JerHAzrC8eY+kNrAE3wu8sf3N 8jy/46vcGd7alzRPKn8zpXNrY84TVc/IC06pa3r+zt9z7UIQY+Qaw436uSm/vNqKkoRbZvy6 mP/L6JuotHPJopUbqmL2mbsE7Dy8aUK+cbgSS3FGoqEWc1FxIgB6dmaHyAIAAA== X-CMS-MailID: 20221118044223epcas1p12eab9a6fb08ec382625b3fb43f401e07 X-Msg-Generator: CA X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20221118044223epcas1p12eab9a6fb08ec382625b3fb43f401e07 References: Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org From: ChanWoo Lee Remove unnecessary if/goto code. Signed-off-by: ChanWoo Lee Reviewed-by: Stanley Chu Reviewed-by: AngeloGioacchino Del Regno --- drivers/ufs/host/ufs-mediatek.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/ufs/host/ufs-mediatek.c b/drivers/ufs/host/ufs-mediatek.c index 7309f3f87eac..7d13878dff47 100644 --- a/drivers/ufs/host/ufs-mediatek.c +++ b/drivers/ufs/host/ufs-mediatek.c @@ -441,8 +441,6 @@ static int ufs_mtk_mphy_power_on(struct ufs_hba *hba, bool on) if (ufs_mtk_is_va09_supported(hba)) { ufs_mtk_va09_pwr_ctrl(res, 0); ret = regulator_disable(host->reg_va09); - if (ret < 0) - goto out; } } out: