[PATCH] MIPS: minor cleanups for octeon

From: Hillf Danton
Date: Sat Jul 30 2011 - 20:57:34 EST


It is just cleanup for two cases in the code, then it looks not ugly enough.

Signed-off-by: Hillf Danton <dhillf@xxxxxxxxx>
---
arch/mips/include/asm/octeon/cvmx.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/mips/include/asm/octeon/cvmx.h
b/arch/mips/include/asm/octeon/cvmx.h
index 7e12867..e314c26 100644
--- a/arch/mips/include/asm/octeon/cvmx.h
+++ b/arch/mips/include/asm/octeon/cvmx.h
@@ -88,7 +88,8 @@ static inline uint32_t cvmx_get_proc_id(void)
*
* @bits: Number of bits in the mask
* Returns The mask
- */ static inline uint64_t cvmx_build_mask(uint64_t bits)
+ */
+static inline uint64_t cvmx_build_mask(uint64_t bits)
{
return ~((~0x0ull) << bits);
}
@@ -412,8 +413,7 @@ static inline uint64_t cvmx_get_cycle_global(void)
* 3) If #2 isn't true loop to #1 unless too much time has passed.
*/
#define CVMX_WAIT_FOR_FIELD64(address, type, field, op, value, timeout_usec)\
- ( \
-{ \
+({ \
int result; \
do { \
uint64_t done = cvmx_get_cycle() + (uint64_t)timeout_usec * \
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/