Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1190393ybg; Tue, 2 Jun 2020 03:46:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUyF+UrneEfPVl6c0r8780LtBkgucuaCy+ZNKw12jmV8bRsiTHiEcJDpbY+zq8l1CD9vvj X-Received: by 2002:a17:906:938a:: with SMTP id l10mr22542913ejx.186.1591094800050; Tue, 02 Jun 2020 03:46:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591094800; cv=none; d=google.com; s=arc-20160816; b=q7oEfunEZEeeap5xXxeG/MlQMrz/p1llHkHd1U/dcV4sxyc1XymONK/4eJBU4tbh+N whvkTAaqYJGxGKl8ri0GHqQ3huqhLdP4m+kvcMnyFsTUzHXw1EPorMZf8fUmQJ2DIIi5 n6/fdFL2/JmdFxJpHjgPewl/HFSEMmhTfeWo9AyU3tqNR/ld7U3PO8dpmG5TGQVEPKL3 Nkr/jTnSo5AmAMbUT9tTNlogodhGVqyvRjhLAOJs+KyE0eRsx+KLbJD88lM4cQsQhgDQ UhhxrzPXCRHl+tqE11pe17kJfV62aqkT5/HBjoZoV4hBTWr+UGbij+4GwAckaJqzYBZM y6TQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=H05OVuwlBgrwjdIL249fOEZc54JAKac/tUGyHC08gQs=; b=NdHrAkSfdphq2qQwMnbb7tprvs8cpE88pFj5NL5cQHzxH1IcNc2yevMwV0Tf+0HxtV 48GPcekFe4arJAliuDIB0n3lR0QafqwF+pcrpyxp+kzaeYk8af3j5d3r6Qnn32GeyiZu tGGri1kiLyg+z5yM1q8GBRXCAN+DNpdloiy8xaBfmoiQsZzQY6UX0Y9tMuYe809GAuGh 6f4JT7BOk+82fokMbYaUqqldTbgq2uYBEfEoUqE/4qWjMSmJW0f+mN4jtG0G6V7OfONA P9VRmJAFIWkBKpv2eDiRNbmYLAYsHFuS7iwnvv3wQiNdcQxDcRWtUy02tgxz2RGSL3+F Gt8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Qv3Td0OK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ck9si1264654ejb.371.2020.06.02.03.46.17; Tue, 02 Jun 2020 03:46:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Qv3Td0OK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726868AbgFBKo3 (ORCPT + 99 others); Tue, 2 Jun 2020 06:44:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725958AbgFBKo2 (ORCPT ); Tue, 2 Jun 2020 06:44:28 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B400C061A0E; Tue, 2 Jun 2020 03:44:24 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id n9so1206018plk.1; Tue, 02 Jun 2020 03:44:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=H05OVuwlBgrwjdIL249fOEZc54JAKac/tUGyHC08gQs=; b=Qv3Td0OKHbhrSjgPbGqNpIAKA6svKHpglY3/U1gOS8lKHtAGsEwtP7zDxMfz/TZiUL M6OrU7sdrP4rDUevsQ3bL8Nkj716L5v2mEMoTDF5LFU68rMRxh/q3rSyVZdLd+REmzpW oKqIIZ053AkrJwYi/CU67ypkZ7/GMlS3AGKybC0chI/z2EXothcEPyAPIKmkc3VcS3GG pxNrJkD7Je35YPJVyJPNN890Ud8VuF36LpGAyecDCYY7p4vwiz1gc9/yAV+EXB6Uehia eD8fuA9xFMaGdu5M9kmb2nb2M0Vt7nUxxHXKnWX9NyWu+oiLqbfJDwhR87ezKXjT0WTR 9fOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=H05OVuwlBgrwjdIL249fOEZc54JAKac/tUGyHC08gQs=; b=P+j7BHTNJkjKtFtRGA5/VnbM+kQQcjpaJgWTRIF5pUl373Kxzi8HS/YEdhh2lrqH/e qtjpJ4Fux4E7uHN4gZmr5At1x+ZrEkqlBAeysIbBV5C4M9rq4lZ3+4PuT9bWpkNbbMWP P6PJoUz27HQnNkJGDMrP/TT87BcS/cRjWMfwuZ2pMqRtyOfXGcOFUqmWubTFcwJuOmCc YSbHTdOzrNuwaVywftR/8t4m/+az7NkvfWRuInV0Q7E4KNa/Qf9s8cskq16JIUZfe0BM xQjL7aD0ZkA6h1klxnhyd15XU5gY+WTuXtl4GgsPn6lmHhJx8xTtUSXvtpJ4czckPaHe JwMg== X-Gm-Message-State: AOAM533lMCQMF9NzSDEakLMVlL3hVICSbWcyUXPh/dKQ1oKFuUNN2aNI iZnhv80NSNa/4mVgMZ8uSBXvdjcopXM= X-Received: by 2002:a17:902:8204:: with SMTP id x4mr11259413pln.153.1591094663735; Tue, 02 Jun 2020 03:44:23 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:189:c86a:7149:74ab:b584:ecf8]) by smtp.gmail.com with ESMTPSA id s98sm153046pjb.33.2020.06.02.03.44.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jun 2020 03:44:23 -0700 (PDT) From: Aishwarya Ramakrishnan To: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S. Miller" , Jakub Kicinski , Maxime Coquelin , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: aishwaryarj100@gmail.com Subject: [PATCH] net: stmmac: Drop condition with no effect Date: Tue, 2 Jun 2020 16:14:04 +0530 Message-Id: <20200602104405.28851-1-aishwaryarj100@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As the "else if" and "else" branch body are identical the condition has no effect. So removing "else if" condition. Signed-off-by: Aishwarya Ramakrishnan --- drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c index bcda49dcf619..f59813a0405c 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c @@ -229,8 +229,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; -- 2.17.1