Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp635582ybj; Thu, 7 May 2020 04:11:50 -0700 (PDT) X-Google-Smtp-Source: APiQypKPc2u2ZmasgQizpI49AA7/PEDVw40Cg9TQqSMsUFLC+RbM/RiIVycWJNGpX+Qcmau5cdBI X-Received: by 2002:a17:906:f74e:: with SMTP id jp14mr11955557ejb.15.1588849910367; Thu, 07 May 2020 04:11:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588849910; cv=none; d=google.com; s=arc-20160816; b=Z3y+YCSTB0YM8J0gh6xH28BZjxY7JwBzh1PM/E1JU8GzoJyy4CUZCiudgmjsVcRIn0 lPBiH642o+fGLON4S++JH/xWtexl5gQBYnRFJN51aQYcEtYQ+7pSvkckDEJ1uOtYQbT3 OFLS3jInB05/rXKPwLd1A/9n6XKOLqEsWQ4h4lCsJ62bhbFVMeNjlHf4wQzuosnI9vum vQ0/M0peIlRHCQw0zLEz5UAil42rHwLpk2vlafHZXs6lxn+cq4d7AwEAknixxHgvJbTb NR6v4RxW8LVDc+F20/sPeU+/uWK7nlwD2HvAbY+uf/lvTl5KbtsJjkyN66yEMp4mYHOA OeCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=sQfKgqItTe3sfghZUGow8ubLbUd5qWyRd4X1OWXsJHg=; b=thx8K6hgflgGF/K80do2rqN0vnPlcnkHmbAxwAFzuERT5I1qVoaWNy9bSNXnvxj07Z 6oUIVtVMVml/IZmQLFUO/EMFw4HcKKFWvzJ05oy2ULSsRU58aMD12WBGvZDzNJVQpsDu Bl5b+Jb456soRxdfoH3KJnkZslXxDzbL4YbvhweE9FpsakwLq6ypWQ5p/1qHI8/iI8MX lcThlJic39CbOWwgqe8BGKM14v6NpgbGctB8jMzuvRGSs1A2R94R7DHs1g/h7EbVJqLz EgCj/7i2ll/ofZQcN+bw6Fn42hM7AJ6DA83wWXsTH+kOI4QlWFHfEFYmFLD6M545oZ4z +kJg== 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 v20si3155901edb.355.2020.05.07.04.11.25; Thu, 07 May 2020 04:11:50 -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 S1727092AbgEGLJZ (ORCPT + 99 others); Thu, 7 May 2020 07:09:25 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:3842 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725809AbgEGLJZ (ORCPT ); Thu, 7 May 2020 07:09:25 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 85E8F700756EB12A2722; Thu, 7 May 2020 19:09:23 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Thu, 7 May 2020 19:09:16 +0800 From: Jason Yan To: , , , , CC: Jason Yan Subject: [PATCH net-next] net: atheros: remove dead code in atl1c_resume() Date: Thu, 7 May 2020 19:08:36 +0800 Message-ID: <20200507110836.37859-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This code has been marked dead for nearly 10 years. Remove it. Signed-off-by: Jason Yan --- drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c index 04bc53af12d9..decab9a8e4a8 100644 --- a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c +++ b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c @@ -2449,12 +2449,6 @@ static int atl1c_resume(struct device *dev) atl1c_reset_mac(&adapter->hw); atl1c_phy_init(&adapter->hw); -#if 0 - AT_READ_REG(&adapter->hw, REG_PM_CTRLSTAT, &pm_data); - pm_data &= ~PM_CTRLSTAT_PME_EN; - AT_WRITE_REG(&adapter->hw, REG_PM_CTRLSTAT, pm_data); -#endif - netif_device_attach(netdev); if (netif_running(netdev)) atl1c_up(adapter); -- 2.21.1