Message ID | 1471301508-24970-1-git-send-email-weiyj.lk@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8E0A1607FD for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 15 Aug 2016 22:53:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 80D0628EA3 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 15 Aug 2016 22:53:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7561028EA5; Mon, 15 Aug 2016 22:53:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EBA8C28EA3 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 15 Aug 2016 22:53:34 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bZQk4-0003ch-Bs; Mon, 15 Aug 2016 22:52:24 +0000 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bZQjw-0003Wu-S1; Mon, 15 Aug 2016 22:52:17 +0000 Received: by mail-pf0-x244.google.com with SMTP id i6so4381403pfe.0; Mon, 15 Aug 2016 15:51:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3yuuwiZi4VaFfX2p3dLc5nFZwNy61v1FfiAQ9pLQz0Y=; b=eNZKU++D6qW0iIJcyJoLHEQeIDLFzywSC066gwB36OGTwrb1I4H3x9YEof04RQl/1D gHbB6bnoIJPVrpTvhH9YhBN2k1fOOG81TErx+ycatiC8JQlr4qM/5Mja4DMy6AlF1LMi vMYuetybsu2TesvifmQdnjO3tyyLcGE2qEIZt+RsgnqnG3eGSriVQvcydAQNPjM+Gx1g K2cpBREePPq1F0kw3WyBgEv7NhSxSUTnNq5jJ/2VS4hm/GB7nWyA/XpD0FpgrRrIGAp+ EEUoL22F8hgoTJWf0WuhyKyWndpwmf3IUFYQGmFWA36rjbuHmFKf0+h08/dh2lNBenxy k9BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3yuuwiZi4VaFfX2p3dLc5nFZwNy61v1FfiAQ9pLQz0Y=; b=GHPo8jerUmNztqZdtgKykDnrSwfKdykG/ZxQKtrZl1HbtYhwd8KOA05V+yKDZw4zdG 5vTOMndCZYZGB9ZIkhdoJwmHnY1jaxRa0NN3y5o4ulTtce9oZx9XANrfn9O6tH8ZE24r c9trVXqJNRWDwQHL9vNxiSmoi9NMitpH874y+kVVJjlUGHgBnnwI75TvLMU4WASnJ7JH bMoIQ0sYWgupdDTYM4ODOoVd+UbgbM9iRvtNGKzIvBz9IXcXt6pHdV7T8mlHjZUx3KFT Y29T/Jax7BXjq9+lZF4y5FrjmEjxjSfyCRogxxNE1lSaBDcUTnKIth+HV4fSSUqZ2iid kxNQ== X-Gm-Message-State: AEkooutW+FKZ7y95yDn/ce356WhwN2IsFmC3PSvlKKmd6UtPdKl1FKTNMtiEIxuNySKp8w== X-Received: by 10.98.131.8 with SMTP id h8mr7492880pfe.124.1471301516211; Mon, 15 Aug 2016 15:51:56 -0700 (PDT) Received: from bogon.localdomain (ec2-52-192-197-227.ap-northeast-1.compute.amazonaws.com. [52.192.197.227]) by smtp.gmail.com with ESMTPSA id t80sm33844210pfj.38.2016.08.15.15.51.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Aug 2016 15:51:55 -0700 (PDT) From: Wei Yongjun <weiyj.lk@gmail.com> To: Felix Fietkau <nbd@openwrt.org>, John Crispin <blogic@openwrt.org>, Matthias Brugger <matthias.bgg@gmail.com> Subject: [PATCH -next] net: mediatek: remove unnecessary platform_set_drvdata() Date: Mon, 15 Aug 2016 22:51:48 +0000 Message-Id: <1471301508-24970-1-git-send-email-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160815_155216_989268_BD9595DD X-CRM114-Status: GOOD ( 10.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, Wei Yongjun <weiyj.lk@gmail.com>, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c index 88b04dd..65986a0 100644 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c @@ -1895,7 +1895,6 @@ static int mtk_remove(struct platform_device *pdev) netif_napi_del(ð->tx_napi); netif_napi_del(ð->rx_napi); mtk_cleanup(eth); - platform_set_drvdata(pdev, NULL); return 0; }
The driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com> --- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 1 - 1 file changed, 1 deletion(-)