Skip to content

Commit

Permalink
net: caif: remove unused structs
Browse files Browse the repository at this point in the history
'cfpktq' has been unused since
commit 73d6ac6 ("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>
  • Loading branch information
Dr. David Alan Gilbert authored and David S. Miller committed Jun 5, 2024
1 parent 61e2bba commit 6f49c3f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions include/net/caif/caif_layer.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@

struct cflayer;
struct cfpkt;
struct cfpktq;
struct caif_payload_info;
struct caif_packet_funcs;

#define CAIF_LAYER_NAME_SZ 16

Expand Down
7 changes: 0 additions & 7 deletions net/caif/cfpkt_skbuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6f49c3f

Please sign in to comment.