staging/otus: fix checkpatch warnings on wrap_buf
PATCH 1/1 staging/otus: fix checkpatch warnings on wrap_buf
Fix a bunch of warnings like "foo* bar" which should be "foo *bar".
Signed-off-by Thiago Farina <[email protected]>
--- drivers/staging/otus/wrap_buf.c | 33 ++++++++++++--------------------- 1 files changed, 12 insertions(+), 21 deletions(-)
drivers/staging/otus/wrap_buf.c +12 -21
@@ -27,57 +27,49 @@#include "oal_dt.h" #include "usbdrv.h" -#include <linux/netlink.h> #include <net/iw_handler.h> -/* Called to allocate buffer, must return a continue buffer space */ -zbuf_t *zfwBufAllocate (zdev_t * dev,u16_t len) +zbuf_t *zfwBufAllocate (zdev_t *dev,u16_t len) { -zbuf_t * buf; +zbuf_t *buf; -/* Allocate SKB for packet*/ +/* Allocate SKB for packet */ buf =dev_alloc_skb (len);return buf; } -/* Called to free buffer, replace below 3 functions */ -void zfwBufFree (zdev_t * dev,zbuf_t * buf,u16_t status) +void zfwBufFree (zdev_t *dev,zbuf_t *buf,u16_t status) {dev_kfree_skb_any (buf); }/* Called to adjust buffer size and head pointer */ -u16_t zfwBufRemoveHead (zdev_t * dev,zbuf_t * buf,u16_t size) +u16_t zfwBufRemoveHead (zdev_t *dev,zbuf_t *buf,u16_t size) { -//zm_assert(buf->len > size); +/* zm_assert(buf->len > size); */ buf->data += size; buf->len -= size;return 0 ; } - - -/* return tail if head==NULL, called to chain multiple buffer together */ /* Used to chain Rx buffer to form a frame. if the prepared Rx buffer */ -/* is greater than an ethernet frame(1518+32 byte), then this function */ +/* is greater than an ethernet frame(1518+32 byte), then this function */ /* will only be called with head=NULL. */ -u16_t zfwBufChain (zdev_t * dev,zbuf_t ** head,zbuf_t * tail) +u16_t zfwBufChain (zdev_t *dev,zbuf_t **head,zbuf_t *tail) { - *head = tail;return 0 ; } -/* Called when doing infra-bss forwarding */ -u16_t zfwBufCopy (zdev_t * dev,zbuf_t * dst,zbuf_t * src) +u16_t zfwBufCopy (zdev_t *dev,zbuf_t *dst,zbuf_t *src) {memcpy (dst->data, src->data, src->len); dst->tail = dst->data;
@@ -85,9 +77,8 @@ u16_t zfwBufCopy(zdev_t* dev, zbuf_t* dst, zbuf_t* src)return 0 ; } -/* Called to adjust buffer size and tail pointer */ -u16_t zfwBufSetSize (zdev_t * dev,zbuf_t * buf,u16_t size) +u16_t zfwBufSetSize (zdev_t *dev,zbuf_t *buf,u16_t size) {#ifdef NET_SKBUFF_DATA_USES_OFFSET buf->tail =0 ;
@@ -101,11 +92,11 @@ u16_t zfwBufSetSize(zdev_t* dev, zbuf_t* buf, u16_t size)return 0 ; } -u16_t zfwBufGetSize (zdev_t * dev,zbuf_t * buf) +u16_t zfwBufGetSize (zdev_t *dev,zbuf_t *buf) {return buf->len; } -void zfwCopyBufContext (zdev_t * dev,zbuf_t * source,zbuf_t * dst) +void zfwCopyBufContext (zdev_t *dev,zbuf_t *source,zbuf_t *dst) { }
Signature · 1 line
1.6.5.1.61.ge79999
Hi Greg, this one too.