net: netpoll: remove unused netpoll pointer from netpoll_info
The netpoll_info structure contains an useless pointer back to its associated netpoll. This field is never used, and the assignment in __netpoll_setup() is does not comtemplate multiple instances, as reported by Jay[1]. Drop both the member and its initialization to simplify the structure. Link: https://lore.kernel.org/all/2930648.1757463506@famine/ [1] Signed-off-by: Breno Leitao <leitao@debian.org> Link: https://patch.msgid.link/20250918-netpoll_jv-v1-1-67d50eeb2c26@debian.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
4d3c5db44c
commit
b34df17d58
|
|
@ -55,7 +55,6 @@ struct netpoll_info {
|
|||
|
||||
struct delayed_work tx_work;
|
||||
|
||||
struct netpoll *netpoll;
|
||||
struct rcu_head rcu;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -591,7 +591,6 @@ int __netpoll_setup(struct netpoll *np, struct net_device *ndev)
|
|||
|
||||
np->dev = ndev;
|
||||
strscpy(np->dev_name, ndev->name, IFNAMSIZ);
|
||||
npinfo->netpoll = np;
|
||||
|
||||
/* fill up the skb queue */
|
||||
refill_skbs(np);
|
||||
|
|
|
|||
Loading…
Reference in New Issue