From patchwork Mon May 10 14:10:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 433143 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp2888373jao; Mon, 10 May 2021 07:18:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLkaEE9fS1faQPH/oYyUWz48Q7k3c586GEq1zQ5hcbMJp2Qm1h1LmyUycV/rp9KkicNz0H X-Received: by 2002:a02:a918:: with SMTP id n24mr21795964jam.125.1620656280363; Mon, 10 May 2021 07:18:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620656280; cv=none; d=google.com; s=arc-20160816; b=t5bSLn6TANgy0zeGFeXwIcmHJNHRx9A/nzY7kKOEfC70fSelwi0R4SEW02j7jEX5fP MwnoZFi5Gk4vGJ5ZdUjtc0nDiuHlzpDWxMJGvKlRKWEfRnEVfU+aYVs0uycbeHMnonTg pr41ekBnzT2xk17H9ayA7YXlYVASVLAFsMxYxQgSyEbBfCm8pINzv+FUd52Anz6fObqA ceYGRFPWOz/6uPfuvxSLmNBwtKnw59R9BA8Ognqo9tG4+EM8yb3itCdTqDUp029lZmS8 B9UHMst7q5lac8nd4fuTwwylo97XqBtIwWBHERQuCqhkvcfTU9ClIoiC0YF3a2WDzng4 zybQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=F639r3esPcNFNF6+Vc4cs2aX6VdJIVidzBOKuFuHoCg=; b=etXpOFiAvu5+ElASMzrjs5uXS+mPsTuXWO4k5F8Futq56emTlQDY63VMXqFrxEr30F FNKQO6nYIayDLjXr084UHEzKQBHmUWU99rkvLxLAcksst0fw2ISsIcpkhzlKT+eSxda+ ZVoEVtbyFMwCLmIwj22hqMk+NMZJWd5mB0D7Cu1H6xms2EXdzc8V0cugi5qq4tP2lJ9e gjfWhucKGYkTy/XjSDuqvJZEqJ5dCU9If9xjNVZrs96MFIjRHQrqcwNIlTYAhOALTzX1 3a4sdhq30/He5qN3qqCx3h+D8Dyaab44LrHg4WfnK/1Mq/FSvc98EGIkIp2VGIoObVfQ VNnQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q8si16406157ior.12.2021.05.10.07.18.00; Mon, 10 May 2021 07:18:00 -0700 (PDT) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232589AbhEJONd (ORCPT + 8 others); Mon, 10 May 2021 10:13:33 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:2296 "EHLO szxga08-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232773AbhEJOLZ (ORCPT ); Mon, 10 May 2021 10:11:25 -0400 Received: from dggeml761-chm.china.huawei.com (unknown [172.30.72.56]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4Ff2s75Y7Yz19NV0; Mon, 10 May 2021 22:06:03 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggeml761-chm.china.huawei.com (10.1.199.171) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Mon, 10 May 2021 22:10:16 +0800 Received: from thunder-town.china.huawei.com (10.174.177.72) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 10 May 2021 22:10:15 +0800 From: Zhen Lei To: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S . Miller" , Jakub Kicinski , "Maxime Coquelin" , netdev , linux-stm32 , linux-arm-kernel CC: Zhen Lei Subject: [PATCH 1/1] net: stmmac: platform: Delete a redundant condition branch Date: Mon, 10 May 2021 22:10:02 +0800 Message-ID: <20210510141002.4013-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-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The statement of the last "if (xxx)" branch is the same as the "else" branch. Delete it to simplify code. No functional change. Signed-off-by: Zhen Lei --- drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 2 -- 1 file changed, 2 deletions(-) -- 2.26.0.106.g9fadedd diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c index 1e17a23d9118506..97a1fedcc9ac04d 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c @@ -230,8 +230,6 @@ static int stmmac_mtl_setup(struct platform_device *pdev, plat->tx_sched_algorithm = MTL_TX_ALGORITHM_WFQ; else if (of_property_read_bool(tx_node, "snps,tx-sched-dwrr")) plat->tx_sched_algorithm = MTL_TX_ALGORITHM_DWRR; - else if (of_property_read_bool(tx_node, "snps,tx-sched-sp")) - plat->tx_sched_algorithm = MTL_TX_ALGORITHM_SP; else plat->tx_sched_algorithm = MTL_TX_ALGORITHM_SP;