Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 877ba1ef authored by Jelena Bjelja's avatar Jelena Bjelja Committed by Greg Kroah-Hartman
Browse files

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: default avatarJelena Bjelja <jelena.bjelja.ing@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a0ecdf06
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -107,9 +107,11 @@
 * macros
 ******************************************************************************/
#define BLOCK_INPUT(buf, len) \
	do { \
		desc->buf_addr = buf; \
		desc->BUF_SIZE = len; \
    status = hcf_rcv_msg(&(lp->hcfCtx), desc, 0)
		status = hcf_rcv_msg(&(lp->hcfCtx), desc, 0); \
	} while (0)

#define BLOCK_INPUT_DMA(buf, len) memcpy( buf, desc_next->buf_addr, pktlen )