From patchwork Mon May 10 08:36:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen (ThunderTown)" X-Patchwork-Id: 12247207 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E580C433ED for ; Mon, 10 May 2021 08:39:12 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AC4E9610CB for ; Mon, 10 May 2021 08:39:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AC4E9610CB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=w3IzyhTyacNWOD72EGrusR4pAjzUgfy/O8WatkEvviY=; b=F5ittq7bjN7ytND/46Itubc2HZ t7CZC4ez//y5imeOQJKPU4PReOxuTT7fKnioHXjgw1Dcb9Aa/bFpmw/OLlaISOByAhfTFIqO4EZ2G vWt1j+Gge18XwLkgvh8y7S24WC11kTUVD1aMK0ZpioehTdJWWdLSapfs47fCCOwYYytr9Mp/+4UoW JtE3T379yCZXCcXXAvsW8W9MMbtEURjvIZ0lh2OgX+Ls0D8FhQ1XMqFQV3pBfvTQOVmEbzLj9H6g0 MmCciybdlrrpn/m59Xd9lQboJIM20bnafOztwXfUX578pz6qIqbe1pU1DybS77btFfaZ5GidPyt9S ElEKcQYQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lg1Pd-00DeHe-5p; Mon, 10 May 2021 08:37:13 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lg1Pa-00DeHO-QU; Mon, 10 May 2021 08:37:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type: Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From: Sender:Reply-To:Content-ID:Content-Description:In-Reply-To:References; bh=iHE0nxVgpGAT37lTVymGMj0Xne+uX+27NuuHRXRRPHE=; b=yDQx3t+p4vPTT9B1IfxNitS2qX EgFswcvzrVxBEdx38286O0wh1FSUkAIsG9uLbfLqUWi73WlEaBLWB9kOvPWjICaCpxO2RLzHL796H h6KhnmiNxehA6mmOwu7+/kSPL2k7mTO1Dx8cyKHM5XOvyWjGX+YOusNS3IrjlxBngceCsd5myVBoP ijrVrXmCctMAqxvOqYARXl0MP3C9nv0AaPjodl9d9k7GVjYqQChd1lfvuZitpOBeLmYZAHi91/vYc viLrYG9xfP3vQ7VKyT0meLGuEp1xf+v2dUUHHuIG7Ed9ppa8Z2+7KXPuczUHg1OgJ8geGBrzRsdeq oCKFmScQ==; Received: from szxga07-in.huawei.com ([45.249.212.35]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lg1PX-008QAa-Qq; Mon, 10 May 2021 08:37:09 +0000 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4FdvVQ5ryjzCr7S; Mon, 10 May 2021 16:34:22 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.72) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.498.0; Mon, 10 May 2021 16:36:54 +0800 From: Zhen Lei To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , "Matthias Brugger" , alsa-devel , linux-arm-kernel , linux-mediatek CC: Zhen Lei Subject: [PATCH 1/1] ASoC: mediatek: mt8192: Delete a redundant condition branch Date: Mon, 10 May 2021 16:36:40 +0800 Message-ID: <20210510083640.3368-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.177.72] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210510_013708_047161_0E176EE6 X-CRM114-Status: UNSURE ( 8.93 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The statement of the "if (afe_priv->mtkaif_protocol == MTKAIF_PROTOCOL_2)" branch is the same as the "else" branch. Delete it to simplify code. No functional change. Signed-off-by: Zhen Lei --- sound/soc/mediatek/mt8192/mt8192-dai-adda.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/soc/mediatek/mt8192/mt8192-dai-adda.c b/sound/soc/mediatek/mt8192/mt8192-dai-adda.c index f040dce85da537b..f8c73e8624df20b 100644 --- a/sound/soc/mediatek/mt8192/mt8192-dai-adda.c +++ b/sound/soc/mediatek/mt8192/mt8192-dai-adda.c @@ -413,8 +413,6 @@ static int mtk_adda_pad_top_event(struct snd_soc_dapm_widget *w, case SND_SOC_DAPM_PRE_PMU: if (afe_priv->mtkaif_protocol == MTKAIF_PROTOCOL_2_CLK_P2) regmap_write(afe->regmap, AFE_AUD_PAD_TOP, 0x38); - else if (afe_priv->mtkaif_protocol == MTKAIF_PROTOCOL_2) - regmap_write(afe->regmap, AFE_AUD_PAD_TOP, 0x30); else regmap_write(afe->regmap, AFE_AUD_PAD_TOP, 0x30); break;