]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: caif: remove unused structs
authorDr. David Alan Gilbert <linux@treblig.org>
Fri, 31 May 2024 23:29:17 +0000 (00:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Jun 2024 09:18:06 +0000 (10:18 +0100)
'cfpktq' has been unused since
commit 73d6ac633c6c ("caif: code cleanup").

'caif_packet_funcs' is declared but never defined.

Remove both of them.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/caif/caif_layer.h
net/caif/cfpkt_skbuff.c

index 51f7bb42a93611a74ecf0fb85a537b8a61ac46f6..0f45d875905f88bd2bc08f9c6ef5c55dc1130b4d 100644 (file)
@@ -11,9 +11,7 @@
 
 struct cflayer;
 struct cfpkt;
-struct cfpktq;
 struct caif_payload_info;
-struct caif_packet_funcs;
 
 #define CAIF_LAYER_NAME_SZ 16
 
index 7796414d47e52a30ce8c0518fb2c52ffc8070bd1..2ae8cfa3df8845dc85ee28619740c7e8fc9743ea 100644 (file)
@@ -21,13 +21,6 @@ do {                                    \
        pr_warn(errmsg);                   \
 } while (0)
 
-struct cfpktq {
-       struct sk_buff_head head;
-       atomic_t count;
-       /* Lock protects count updates */
-       spinlock_t lock;
-};
-
 /*
  * net/caif/ is generic and does not
  * understand SKB, so we do this typecast