Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2873962pxb; Mon, 18 Oct 2021 03:52:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzz5HPBUJzn5F1+PnJoJ09RBUMo2ykqlSg3MCYEja5DJDfO32U/rCC5V0BBz5OnUdJvT+1Y X-Received: by 2002:a17:907:6da3:: with SMTP id sb35mr10684572ejc.519.1634554341124; Mon, 18 Oct 2021 03:52:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634554341; cv=none; d=google.com; s=arc-20160816; b=fLd8KlhoZqtCGT9Z8vge9pkg7b7Q04XDqDg7MsiWTCFFL37JqEhBfO89QSRoOPkgkP VnS9JBrLHd9S/Ty8j2AommBAgq0fdxor88vj+Lwjd3mrjwiTX11o4aBEvnt/4Fnq/R6P TYVSfeGGt+Rlno4bz1u0RQQozcMprfQyZ4uR+iT9XvoIA3GEBMIU1dcsSPWNisjeeNgD SciKTsFI+Lb1TKQDfOaCSTpocvgXc+5DvWMJkVAAJdyliIqGVUsi4FuFAT+m6BpU2zRb HcjjfaDzNYXc8bwD0Nqpm0KWLpk+PGLCRkyjWr0048L8aNDgj3O+uwPEn0FEAuvgK2AY hQkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=AxdcLSlhrQs3CgEcwXeJtyGAKh5a/0QP2FmFkH6JpEI=; b=fDFR7lgamQHqnElizkr6OsTWvBQzRu/7rZ1FlivHZ58WK3hQPB383ZOrzSAnQuPVcl Tt/WEmcCwG7stqUtWX7dDoNap/+TcisH97CHkb6MUGMYY17eLeWnsL1yNrz7XgJYMwJu sEq7LHhpo4rDUId+tiPKEGCZV1FdSWbd9ER5yBXDIRsw+9EZEx0jKA8fUd7HKAjvlEfs wdM4jyuyTg3hFN/g49e8dN9hDOsBY35Ztqio/7iFIBaZp3KNqYSX/ls8qzc3OnI/87KS GO6Nyxhd7OPU8MOwlSU4X7WW+AjvRTecWXeMR0OukPvtTNFvC7nRAc2iiTGfgUX/mkBP 3FpA== 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 j23si25205716eje.211.2021.10.18.03.51.56; Mon, 18 Oct 2021 03:52:21 -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 S230523AbhJRKuU (ORCPT + 99 others); Mon, 18 Oct 2021 06:50:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229590AbhJRKuT (ORCPT ); Mon, 18 Oct 2021 06:50:19 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9707EC06161C for ; Mon, 18 Oct 2021 03:48:08 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mcQBV-0003Jz-Qd; Mon, 18 Oct 2021 12:48:01 +0200 Received: from pengutronix.de (2a03-f580-87bc-d400-c2ef-28ab-e0cd-e8fd.ip6.dokom21.de [IPv6:2a03:f580:87bc:d400:c2ef:28ab:e0cd:e8fd]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id ED5856965B1; Mon, 18 Oct 2021 10:47:59 +0000 (UTC) Date: Mon, 18 Oct 2021 12:47:59 +0200 From: Marc Kleine-Budde To: Dongliang Mu Cc: Appana Durga Kedareswara rao , Naga Sureshkumar Relli , Wolfgang Grandegger , "David S. Miller" , Jakub Kicinski , Michal Simek , linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] can: xilinx_can: remove redundent netif_napi_del from xcan_remove Message-ID: <20211018104759.t5ib62kqjenjepkv@pengutronix.de> References: <20211017125022.3100329-1-mudongliangabcd@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="laxzct2z5txsqxzw" Content-Disposition: inline In-Reply-To: <20211017125022.3100329-1-mudongliangabcd@gmail.com> X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --laxzct2z5txsqxzw Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 17.10.2021 20:50:21, Dongliang Mu wrote: > Since netif_napi_del is already done in the free_candev, so we remove > this redundent netif_napi_del invocation. In addition, this patch can > match the operations in the xcan_probe and xcan_remove functions. >=20 > Signed-off-by: Dongliang Mu > --- > drivers/net/can/xilinx_can.c | 1 - > 1 file changed, 1 deletion(-) >=20 > diff --git a/drivers/net/can/xilinx_can.c b/drivers/net/can/xilinx_can.c > index 3b883e607d8b..60a3fb369058 100644 > --- a/drivers/net/can/xilinx_can.c > +++ b/drivers/net/can/xilinx_can.c > @@ -1848,7 +1848,6 @@ static int xcan_remove(struct platform_device *pdev) > =20 > unregister_candev(ndev); > pm_runtime_disable(&pdev->dev); > - netif_napi_del(&priv->napi); > free_candev(ndev); > =20 > return 0; Fixed the following error: | drivers/net/can/xilinx_can.c: In function =E2=80=98xcan_remove=E2=80=99: | drivers/net/can/xilinx_can.c:1847:20: error: unused variable =E2=80=98pri= v=E2=80=99 [-Werror=3Dunused-variable] | 1847 | struct xcan_priv *priv =3D netdev_priv(ndev); | | ^~~~ regards, Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | --laxzct2z5txsqxzw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEK3kIWJt9yTYMP3ehqclaivrt76kFAmFtUNwACgkQqclaivrt 76lG4Af/egULUDAzVZK2yX285A7T6hDs6mdkip8Z7JDRg+Jdhjix258HzSYS7Qdd Sxp1DUGn16KE+9HlJn4BQ/5LosSc3RixQxegHKLDa09BmlKD7qSKakSySMinQk6c M9GoO1wRFH7VcXfou4p3TtdcOkocsk/AxRac12J5cufxzi4yDskRj0+NzW+tP1RJ 8pL7Q8eXZezsD04FEX2PyJHOyn8VDnkfxILcwdtpTIzhwDakYzI0PmSWRekya5jK gk6lkVWPVdo2ZH6JwsGfNNAx+yi8A/4h1o1KeK7C5D416PLcU+HPWCTNMEoee7bK uSHXM95bWxiWLJDpB1AqDx8FHrGkLQ== =sQuT -----END PGP SIGNATURE----- --laxzct2z5txsqxzw--