Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp349723pxu; Fri, 23 Oct 2020 02:23:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUMKak5oGTvQ0cqvcZ5OE9Gx5WkQAVTHjpjv85AS3FrAgG2j15WLiuqCklm4suChRRMwcP X-Received: by 2002:aa7:db07:: with SMTP id t7mr1299937eds.161.1603445025210; Fri, 23 Oct 2020 02:23:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603445025; cv=none; d=google.com; s=arc-20160816; b=b6Y4hA/Exr8Cc2IiduuPtjRFbmMOJVzUOgGt5qwj90/9DPIKDKdKwe2jWL3kYkedwd CwTsPZTKgPGFPzTAuY4r1HBSB+YaVJSuew4AW5DhW3eeYSP90y6HwOdFiwlt3IigIpQ1 R+or4aFTq+25XY/ICuVE3hOD24zFSF8XufvFWjHIW3VPlAvpj3Q9m9Ig8suDFE4VgzTb M78tgbjusvSsNBLLBZ9++eA9RqUuivFJeOMHNjb7iR8LU2G4WZ8ZJfJ66MDcloMsWX24 KdKro0P4PkorO+xmWT7T+0qgSD6GXBdCx/aWMn0YwiZ/gLkH+ooUH1HBe9SwymQ4fHne rhUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=2vNeBoEJRxlcKkFouXFAJnh+vXWsHLn+VUmyTavmr7s=; b=AZ6vDabQmCfN8IqXx3b1OI/zQ+rJS7E40RIUkgBudFfIj8jKutAcPesL0h+B7glMH/ HKx3ykKGs17BUAPE9thIv8kdtqlgqfATDWaqd3taStQEo/Ca/1Xy2vK7TDKp3Fq888UA Kp6kjXOfDxGpU2Vvyxvtkq9Ti6qXgT76IGU4s+Ct5QrhFbtuGajduLw46IXKaa5ABdoS 3cdKEGn6Ngf9WggiKuyWTA6GbtViCBTNJnYQ7FKJIY5ej5pZepkgfJS47l2p0kYhBx4U i8OcGhhOAhHh0E7BJCdwdW2Vvv9twKBZX1kiOeWN7+Ud2basl27j3n5IDYsJnkRzxsik ibCA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qx20si482721ejb.701.2020.10.23.02.23.21; Fri, 23 Oct 2020 02:23:45 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S461346AbgJWJVW (ORCPT + 99 others); Fri, 23 Oct 2020 05:21:22 -0400 Received: from smtp21.cstnet.cn ([159.226.251.21]:49876 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S461338AbgJWJVW (ORCPT ); Fri, 23 Oct 2020 05:21:22 -0400 Received: from localhost.localdomain (unknown [124.16.141.242]) by APP-01 (Coremail) with SMTP id qwCowACHjuaGoJJfbPJ1Aw--.34707S2; Fri, 23 Oct 2020 17:21:10 +0800 (CST) From: Xu Wang To: bryan.whitehead@microchip.com, UNGLinuxDriver@microchip.com, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] net: microchip: Remove unneeded variable ret Date: Fri, 23 Oct 2020 09:21:07 +0000 Message-Id: <20201023092107.28065-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: qwCowACHjuaGoJJfbPJ1Aw--.34707S2 X-Coremail-Antispam: 1UD129KBjvdXoW7GFy7ZryrCFW7Xr48AF1xuFg_yoWDWFg_Cr 1Fqw1xtr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-List: linux-kernel@vger.kernel.org Remove unneeded variable ret used to store return value. Signed-off-by: Xu Wang --- drivers/net/ethernet/microchip/lan743x_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/microchip/lan743x_main.c b/drivers/net/ethernet/microchip/lan743x_main.c index a1938842f828..8ea0b4eec19c 100644 --- a/drivers/net/ethernet/microchip/lan743x_main.c +++ b/drivers/net/ethernet/microchip/lan743x_main.c @@ -834,14 +834,13 @@ static int lan743x_mac_init(struct lan743x_adapter *adapter) static int lan743x_mac_open(struct lan743x_adapter *adapter) { - int ret = 0; u32 temp; temp = lan743x_csr_read(adapter, MAC_RX); lan743x_csr_write(adapter, MAC_RX, temp | MAC_RX_RXEN_); temp = lan743x_csr_read(adapter, MAC_TX); lan743x_csr_write(adapter, MAC_TX, temp | MAC_TX_TXEN_); - return ret; + return 0; } static void lan743x_mac_close(struct lan743x_adapter *adapter) -- 2.17.1