From: Jelena Bjelja Date: Wed, 19 Mar 2014 18:45:45 +0000 (+0100) Subject: staging: wlags49_h2: Enclose macro in a do-while loop X-Git-Tag: MMI-PSA29.97-13-9~12500^2~19 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=877ba1eff2e30db7f88755bd217207c52679d2f5;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Greg Kroah-Hartman --- 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 @@ * 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 )