diff options
author | Christoph Jaeger | 2014-08-08 08:00:42 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2014-08-16 21:23:12 +0200 |
commit | 2b8b61aaef59751fe85c1b2df51a848a6c50d202 (patch) | |
tree | f11d28d16adc61f7d9dd245d6c778fdd4e7af224 /drivers/staging/ozwpan/ozeltbuf.h | |
parent | staging: ozwpan: Use slab cache for oz_urb_link allocation (diff) | |
download | kernel-qcow2-linux-2b8b61aaef59751fe85c1b2df51a848a6c50d202.tar.gz kernel-qcow2-linux-2b8b61aaef59751fe85c1b2df51a848a6c50d202.tar.xz kernel-qcow2-linux-2b8b61aaef59751fe85c1b2df51a848a6c50d202.zip |
staging: ozwpan: Use slab cache for oz_elt_info allocation
Use a slab cache rather than rolling our own free list.
Signed-off-by: Christoph Jaeger <email@christophjaeger.info>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ozwpan/ozeltbuf.h')
-rw-r--r-- | drivers/staging/ozwpan/ozeltbuf.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/staging/ozwpan/ozeltbuf.h b/drivers/staging/ozwpan/ozeltbuf.h index 384643272a43..f09f5fe3ffbe 100644 --- a/drivers/staging/ozwpan/ozeltbuf.h +++ b/drivers/staging/ozwpan/ozeltbuf.h @@ -34,7 +34,6 @@ struct oz_elt_info { struct oz_elt_stream *stream; u8 data[sizeof(struct oz_elt) + OZ_MAX_ELT_PAYLOAD]; int length; - unsigned magic; }; /* Flags values */ #define OZ_EI_F_MARKED 0x1 @@ -44,9 +43,6 @@ struct oz_elt_buf { struct list_head stream_list; struct list_head order_list; struct list_head isoc_list; - struct list_head *elt_pool; - int free_elts; - int max_free_elts; u8 tx_seq_num[OZ_NB_APPS]; }; @@ -64,7 +60,6 @@ int oz_queue_elt_info(struct oz_elt_buf *buf, u8 isoc, u8 id, int oz_select_elts_for_tx(struct oz_elt_buf *buf, u8 isoc, unsigned *len, unsigned max_len, struct list_head *list); int oz_are_elts_available(struct oz_elt_buf *buf); -void oz_trim_elt_pool(struct oz_elt_buf *buf); #endif /* _OZELTBUF_H */ |