Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2620627pxb; Sun, 17 Oct 2021 20:44:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkO7oTFbEJcpF8dRpWNmRc9MYPtrAdVUEJ1gMsqx4Rs3kpVxYMPuYssRZAyvm2R3FSYrbn X-Received: by 2002:a63:3e84:: with SMTP id l126mr9760596pga.341.1634528666182; Sun, 17 Oct 2021 20:44:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634528666; cv=none; d=google.com; s=arc-20160816; b=EHquunQzSG5k8MrzmcBKumhRN+oYMbwTt64Qw+HfAxa43kfooFnRFNCMxDApbLGz3V iQtD3jCj9rr4gW3GbcvzyqBlgGAVByLHxCVTQwu9o5ZH3KRjlBnrlsPECpnHiYW67fKt UkNEpV62ERpe2bS1HbvErt4wV2qBYkSvm38aesD2s1AApxHA82a9f8b5tQbKt6gW5Wc2 gqg422lm/KCeDhBjCHsoRKeSDCc8+GvrrfUJAkjuZKNfjPxwl4vl/SUaTXE8stb5zA95 biqVBlujBfqA0WxLb6+Txa/3iXeuUdZmUVfxvSWPNRRGy4AretSApiQ4RVC0LyDtZTBF Jekw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=4wqy4m7MNxsT45A9dbW0Hcm/ddfeiUuTQypZRmFJ+Vg=; b=NGJPM/u5km2CFYybwp9xFX47O5QLLnT/VrBtZVPCV38hpC8f5YL2V+OUrlRCUSa+Og YdvWNzYu3nASOhotV0DEPYVb95Anwsvi0/jnxUiapf7WCyeOuReYv5bVV3ebLVV1MbQm 5SzjonDiE+hnoE5Fcu9Zf+HbtwrvxVijyEcUkPtq2G4688ew1DA1iYXSxyGipfoGPlaS cSMdE1yduSzN4Ykw+b185YyrV8/LWeWMd3XEMr9X937liMBmtngKptXiwCxrX995BD7p Mic2Xs7ZHJCCRho7GtwKgEVFBwJ2FJbBZhVm4gAWjFrRNoG+ps9JjvY83WLzYGUBwRn0 18sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Xr8G/LsV"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u4si19990285pfk.209.2021.10.17.20.44.14; Sun, 17 Oct 2021 20:44:26 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Xr8G/LsV"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343505AbhJQMw4 (ORCPT + 98 others); Sun, 17 Oct 2021 08:52:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229648AbhJQMwz (ORCPT ); Sun, 17 Oct 2021 08:52:55 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88324C061765; Sun, 17 Oct 2021 05:50:46 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id kk10so10432071pjb.1; Sun, 17 Oct 2021 05:50:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4wqy4m7MNxsT45A9dbW0Hcm/ddfeiUuTQypZRmFJ+Vg=; b=Xr8G/LsVQ0pBXqDobWkzpHu0rdMgdKUkGJhF+vweJ4R7F5yPI8WQv4Ze0eEpmHR2kh 1rHOjxqVOY+lmnxoN3BnH50MxruiHyt2aM1Bf13XVljf6+ncHlmasLENCksEtFFelkLz VpLllWKaS2Kzwlewc85RHGp2bGSIo2Fn4GJLQcd9PSNk+Zj2CzYZqWt+p5dU1Bs21lLJ nGMJHMze1YkipQZJvipUGZJ3vX9MbPbt3OLUGXkrqPT/wCVPuckQiDABr4IRBIxC80Cg pPZX8i88ZziY0zlx1j4xIARp/cN7XT2BdXmDkuAa5tmrmNcUFq6Ap7oPz71HOG1Eoydz Zi0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4wqy4m7MNxsT45A9dbW0Hcm/ddfeiUuTQypZRmFJ+Vg=; b=o9Uv9OGAnu8XD8nTHtAJu+mzVVaLuQZpcHWzakBk0Ec036FFawjiI0XqiN0mFZ6lKd 54ViGmltWupqjPQQP364g5PCxN8k8VwUQD7oJNcJ7bZJg93NDSGXQohWDk9gL0enY93z uGknUw4OvC87N0Dh2qg7Q8zjL3D4S98+lf8H0u8VYmI5h/qMVO6phb56QbbPvldauWCO q1l12a18yP526HulUSp+IZ5NB0yVXM93VWLteqZvCyGH0hJARRBj2ejdnLUtc+h4D/NH GVjEO9o34+HwOL11DbCpaM0R9X02p9y31odXk+JFMkEytaOxxc13Bpqwggs1pIsNu7+F 9vGA== X-Gm-Message-State: AOAM531wB6NJ/N8WuENIT42vJU95ZrTDiXIQ1TguKmKmDsldVV4qvcOO aEZ9QTv/4rpVAYtNi0xokp6a4LeXlAUuLkh6EiMPmw== X-Received: by 2002:a17:90a:73ce:: with SMTP id n14mr41998106pjk.215.1634475045872; Sun, 17 Oct 2021 05:50:45 -0700 (PDT) Received: from localhost.localdomain ([94.177.118.10]) by smtp.gmail.com with ESMTPSA id i5sm9597221pgo.36.2021.10.17.05.50.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Oct 2021 05:50:45 -0700 (PDT) From: Dongliang Mu To: Appana Durga Kedareswara rao , Naga Sureshkumar Relli , Wolfgang Grandegger , Marc Kleine-Budde , "David S. Miller" , Jakub Kicinski , Michal Simek Cc: Dongliang Mu , linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] can: xilinx_can: remove redundent netif_napi_del from xcan_remove Date: Sun, 17 Oct 2021 20:50:21 +0800 Message-Id: <20211017125022.3100329-1-mudongliangabcd@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Signed-off-by: Dongliang Mu --- drivers/net/can/xilinx_can.c | 1 - 1 file changed, 1 deletion(-) 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) unregister_candev(ndev); pm_runtime_disable(&pdev->dev); - netif_napi_del(&priv->napi); free_candev(ndev); return 0; -- 2.25.1