]> git.baikalelectronics.ru Git - kernel.git/commitdiff
jme: remove an unnecessary indirection
authorJakub Kicinski <kuba@kernel.org>
Wed, 4 May 2022 16:39:39 +0000 (09:39 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 May 2022 22:53:28 +0000 (15:53 -0700)
Remove a define which looks like a OS abstraction layer
and makes spatch conversions on this driver problematic.

Link: https://lore.kernel.org/r/20220504163939.551231-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/jme.c
drivers/net/ethernet/jme.h

index b6c5122da9959a2769c40adfbbfa0e8520c5ea40..f43d6616bc0dd5f96e775989d8780618570aaee7 100644 (file)
@@ -3009,7 +3009,7 @@ jme_init_one(struct pci_dev *pdev,
                jwrite32(jme, JME_APMC, apmc);
        }
 
-       NETIF_NAPI_SET(netdev, &jme->napi, jme_poll, NAPI_POLL_WEIGHT)
+       netif_napi_add(netdev, &jme->napi, jme_poll, NAPI_POLL_WEIGHT);
 
        spin_lock_init(&jme->phy_lock);
        spin_lock_init(&jme->macaddr_lock);
index 2af76329b4a27d3bb83bce30774ca31d0fecf542..860494ff37144da9dc25d3105ecabb77072077b0 100644 (file)
@@ -379,8 +379,6 @@ struct jme_ring {
 #define DECLARE_NET_DEVICE_STATS
 
 #define DECLARE_NAPI_STRUCT struct napi_struct napi;
-#define NETIF_NAPI_SET(dev, napis, pollfn, q) \
-       netif_napi_add(dev, napis, pollfn, q);
 #define JME_NAPI_HOLDER(holder) struct napi_struct *holder
 #define JME_NAPI_WEIGHT(w) int w
 #define JME_NAPI_WEIGHT_VAL(w) w