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

Commit 9f04b35f authored by Jeff Hugo's avatar Jeff Hugo
Browse files

msm: smp2p: Use correct macro structure



Single statement macros should not be wrapped in do-while blocks.

Remove a do-while block from a single statement macro.

Change-Id: Id74b129aaf3754527d9566ce75daad2ca8c7d3cd
Signed-off-by: default avatarJeffrey Hugo <jhugo@codeaurora.org>
parent b5b0f71f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
/* arch/arm/mach-msm/smp2p_private.h
 *
 * Copyright (c) 2013, The Linux Foundation. All rights reserved.
 * Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -44,10 +44,10 @@
#define SMP2P_GET_BITS(hdr_val, mask, bit) \
	(((hdr_val) & (mask)) >> (bit))
#define SMP2P_SET_BITS(hdr_val, mask, bit, new_value) \
	do {\
	{\
		hdr_val = (hdr_val & ~(mask)) \
		| (((new_value) << (bit)) & (mask)); \
	} while (0)
	}

#define SMP2P_GET_LOCAL_PID(hdr) \
	SMP2P_GET_BITS(hdr, SMP2P_LOCAL_PID_MASK, SMP2P_LOCAL_PID_BIT)