diff options
author | Jelena Bjelja <jelena.bjelja.ing@gmail.com> | 2014-03-19 14:45:45 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-03-19 16:51:52 -0400 |
commit | 877ba1eff2e30db7f88755bd217207c52679d2f5 (patch) | |
tree | a80d80ab7cd79643203671305f6cbf7d9c329413 | |
parent | a0ecdf0695c851b2ad9ecdf3a13590874d78ce5e (diff) |
staging: wlags49_h2: Enclose macro in a do-while loop
Fix the following checkpatch.pl issues in wl_netdev.c:
ERROR: Macros with multiple statements should be enclosed in a do -
while loop
Signed-off-by: Jelena Bjelja <jelena.bjelja.ing@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/wlags49_h2/wl_netdev.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/staging/wlags49_h2/wl_netdev.c b/drivers/staging/wlags49_h2/wl_netdev.c index 255d291bfe54..0e553ae5f375 100644 --- a/drivers/staging/wlags49_h2/wl_netdev.c +++ b/drivers/staging/wlags49_h2/wl_netdev.c | |||
@@ -107,9 +107,11 @@ | |||
107 | * macros | 107 | * macros |
108 | ******************************************************************************/ | 108 | ******************************************************************************/ |
109 | #define BLOCK_INPUT(buf, len) \ | 109 | #define BLOCK_INPUT(buf, len) \ |
110 | desc->buf_addr = buf; \ | 110 | do { \ |
111 | desc->BUF_SIZE = len; \ | 111 | desc->buf_addr = buf; \ |
112 | status = hcf_rcv_msg(&(lp->hcfCtx), desc, 0) | 112 | desc->BUF_SIZE = len; \ |
113 | status = hcf_rcv_msg(&(lp->hcfCtx), desc, 0); \ | ||
114 | } while (0) | ||
113 | 115 | ||
114 | #define BLOCK_INPUT_DMA(buf, len) memcpy( buf, desc_next->buf_addr, pktlen ) | 116 | #define BLOCK_INPUT_DMA(buf, len) memcpy( buf, desc_next->buf_addr, pktlen ) |
115 | 117 | ||