Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net/x25: Remove unused x25_terminate_link()

x25_terminate_link() has been unused since the last use was removed
in 2020 by:
commit 7eed751b3b2a ("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>

authored by

Dr. David Alan Gilbert and committed by
Jakub Kicinski
08a305b2 5ae3bcc2

-23
-1
include/net/x25.h
··· 203 203 int x25_lapb_receive_frame(struct sk_buff *, struct net_device *, 204 204 struct packet_type *, struct net_device *); 205 205 void x25_establish_link(struct x25_neigh *); 206 - void x25_terminate_link(struct x25_neigh *); 207 206 208 207 /* x25_facilities.c */ 209 208 int x25_parse_facilities(struct sk_buff *, struct x25_facilities *,
-22
net/x25/x25_dev.c
··· 170 170 dev_queue_xmit(skb); 171 171 } 172 172 173 - void x25_terminate_link(struct x25_neigh *nb) 174 - { 175 - struct sk_buff *skb; 176 - unsigned char *ptr; 177 - 178 - if (nb->dev->type != ARPHRD_X25) 179 - return; 180 - 181 - skb = alloc_skb(1, GFP_ATOMIC); 182 - if (!skb) { 183 - pr_err("x25_dev: out of memory\n"); 184 - return; 185 - } 186 - 187 - ptr = skb_put(skb, 1); 188 - *ptr = X25_IFACE_DISCONNECT; 189 - 190 - skb->protocol = htons(ETH_P_X25); 191 - skb->dev = nb->dev; 192 - dev_queue_xmit(skb); 193 - } 194 - 195 173 void x25_send_frame(struct sk_buff *skb, struct x25_neigh *nb) 196 174 { 197 175 unsigned char *dptr;