Skip to content

Commit db69ecf

Browse files
committed
batman-adv: Keep interface_tx as local function
interface_tx is not used outside of soft-interface.c and thus doesn't need to be declared inside soft-interface.h Signed-off-by: Sven Eckelmann <sven@narfation.org>
1 parent b8e2dd1 commit db69ecf

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

‎net/batman-adv/soft-interface.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ static int interface_change_mtu(struct net_device *dev, int new_mtu)
553553
return 0;
554554
}
555555

556-
int interface_tx(struct sk_buff *skb, struct net_device *soft_iface)
556+
static int interface_tx(struct sk_buff *skb, struct net_device *soft_iface)
557557
{
558558
struct ethhdr *ethhdr = (struct ethhdr *)skb->data;
559559
struct bat_priv *bat_priv = netdev_priv(soft_iface);

‎net/batman-adv/soft-interface.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
int my_skb_head_push(struct sk_buff *skb, unsigned int len);
2626
int softif_neigh_seq_print_text(struct seq_file *seq, void *offset);
2727
void softif_neigh_purge(struct bat_priv *bat_priv);
28-
int interface_tx(struct sk_buff *skb, struct net_device *soft_iface);
2928
void interface_rx(struct net_device *soft_iface,
3029
struct sk_buff *skb, struct hard_iface *recv_if,
3130
int hdr_size);

0 commit comments

Comments
 (0)