]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
netlink: remove unnecessary forward declaration
authorJohannes Berg <johannes.berg@intel.com>
Mon, 13 Nov 2017 14:57:30 +0000 (15:57 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Nov 2017 12:51:14 +0000 (21:51 +0900)
netlink_skb_destructor() is actually defined before the first usage
in the file, so remove the unnecessary forward declaration.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c

index a3eab903a9cdf9c868064b102f08f8d416250e37..b9e0ee4e22f57066d0ac0bc5f64181fbb65e6acc 100644 (file)
@@ -128,7 +128,6 @@ static const char *const nlk_cb_mutex_key_strings[MAX_LINKS + 1] = {
 };
 
 static int netlink_dump(struct sock *sk);
-static void netlink_skb_destructor(struct sk_buff *skb);
 
 /* nl_table locking explained:
  * Lookup and traversal are protected with an RCU read-side lock. Insertion