Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755465AbdIGPd6 (ORCPT ); Thu, 7 Sep 2017 11:33:58 -0400 Received: from mail-lf0-f49.google.com ([209.85.215.49]:35642 "EHLO mail-lf0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754932AbdIGPd4 (ORCPT ); Thu, 7 Sep 2017 11:33:56 -0400 X-Google-Smtp-Source: AOwi7QDxWlByQog+FX4hEUiguIwCZ1PzXUysP1R/PY88yKAeaE397yt737Cf4mvMNFWXtln60IFcdA== From: Ivan Khoronzhuk To: w-kwok2@ti.com, m-karicheri2@ti.com, netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, grygorii.strashko@ti.com, Ivan Khoronzhuk Subject: [PATCH] net: ethernet: ti: netcp_core: no need in netif_napi_del Date: Thu, 7 Sep 2017 18:32:30 +0300 Message-Id: <1504798350-790-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 733 Lines: 24 Don't remove rx_napi specifically just before free_netdev(), it's supposed to be done in it and is confusing w/o tx_napi deletion. Signed-off-by: Ivan Khoronzhuk --- Based on net-next/master drivers/net/ethernet/ti/netcp_core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/ti/netcp_core.c b/drivers/net/ethernet/ti/netcp_core.c index eb96a69..437d362 100644 --- a/drivers/net/ethernet/ti/netcp_core.c +++ b/drivers/net/ethernet/ti/netcp_core.c @@ -2145,7 +2145,6 @@ static void netcp_delete_interface(struct netcp_device *netcp_device, of_node_put(netcp->node_interface); unregister_netdev(ndev); - netif_napi_del(&netcp->rx_napi); free_netdev(ndev); } -- 2.7.4