mirror of
https://github.com/torvalds/linux.git
synced 2025-08-15 14:11:42 +02:00
net/x25: Remove unused x25_terminate_link()
x25_terminate_link() has been unused since the last use was removed
in 2020 by:
commit 7eed751b3b
("net/x25: handle additional netdev events")
Remove it.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Acked-by: Martin Schiller <ms@dev.tdt.de>
Link: https://patch.msgid.link/20250712205759.278777-1-linux@treblig.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
5ae3bcc204
commit
08a305b2a5
2 changed files with 0 additions and 23 deletions
|
@ -203,7 +203,6 @@ void x25_send_frame(struct sk_buff *, struct x25_neigh *);
|
|||
int x25_lapb_receive_frame(struct sk_buff *, struct net_device *,
|
||||
struct packet_type *, struct net_device *);
|
||||
void x25_establish_link(struct x25_neigh *);
|
||||
void x25_terminate_link(struct x25_neigh *);
|
||||
|
||||
/* x25_facilities.c */
|
||||
int x25_parse_facilities(struct sk_buff *, struct x25_facilities *,
|
||||
|
|
|
@ -170,28 +170,6 @@ void x25_establish_link(struct x25_neigh *nb)
|
|||
dev_queue_xmit(skb);
|
||||
}
|
||||
|
||||
void x25_terminate_link(struct x25_neigh *nb)
|
||||
{
|
||||
struct sk_buff *skb;
|
||||
unsigned char *ptr;
|
||||
|
||||
if (nb->dev->type != ARPHRD_X25)
|
||||
return;
|
||||
|
||||
skb = alloc_skb(1, GFP_ATOMIC);
|
||||
if (!skb) {
|
||||
pr_err("x25_dev: out of memory\n");
|
||||
return;
|
||||
}
|
||||
|
||||
ptr = skb_put(skb, 1);
|
||||
*ptr = X25_IFACE_DISCONNECT;
|
||||
|
||||
skb->protocol = htons(ETH_P_X25);
|
||||
skb->dev = nb->dev;
|
||||
dev_queue_xmit(skb);
|
||||
}
|
||||
|
||||
void x25_send_frame(struct sk_buff *skb, struct x25_neigh *nb)
|
||||
{
|
||||
unsigned char *dptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue