staging: wlags49_h2: Enclose macro in a do-while loop
authorJelena Bjelja <jelena.bjelja.ing@gmail.com>
Wed, 19 Mar 2014 18:45:45 +0000 (19:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Mar 2014 20:51:52 +0000 (13:51 -0700)
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>
drivers/staging/wlags49_h2/wl_netdev.c

index 255d291bfe5487a274a7d20cd45df4350339ab69..0e553ae5f37594ac350f91092f6f43eeedac4829 100644 (file)
  * macros
  ******************************************************************************/
 #define BLOCK_INPUT(buf, len) \
-    desc->buf_addr = buf; \
-    desc->BUF_SIZE = len; \
-    status = hcf_rcv_msg(&(lp->hcfCtx), desc, 0)
+       do { \
+               desc->buf_addr = buf; \
+               desc->BUF_SIZE = len; \
+               status = hcf_rcv_msg(&(lp->hcfCtx), desc, 0); \
+       } while (0)
 
 #define BLOCK_INPUT_DMA(buf, len) memcpy( buf, desc_next->buf_addr, pktlen )