From edafcdd6ec4255612e84ecede0bc53d79491af91 Mon Sep 17 00:00:00 2001 From: Lee Leahy Date: Tue, 7 Mar 2017 15:57:05 -0800 Subject: [PATCH] UPSTREAM: src/include: Remove unnecessary typecast Fix the following warning detected by checkpatch.pl: WARNING: Unnecessary typecast of c90 int constant TEST=Build and run on Galileo Gen2 Change-Id: I9d48d4e4d6793e834ad69438b2592cbc4168f573 Signed-off-by: Patrick Georgi Original-Commit-Id: b7e692e0162d51c10c55591822ff8a7053f70056 Original-Change-Id: I137efa55e945d1315322df2a38d70716a3807a1e Original-Signed-off-by: Lee Leahy Original-Reviewed-on: https://review.coreboot.org/18658 Original-Tested-by: build bot (Jenkins) Original-Reviewed-by: Martin Roth Reviewed-on: https://chromium-review.googlesource.com/454548 --- src/include/swab.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/include/swab.h b/src/include/swab.h index a372797f7c..7d781a089e 100644 --- a/src/include/swab.h +++ b/src/include/swab.h @@ -25,10 +25,10 @@ #define swab32(x) \ ((unsigned int)( \ - (((unsigned int)(x) & (unsigned int)0x000000ffUL) << 24) | \ - (((unsigned int)(x) & (unsigned int)0x0000ff00UL) << 8) | \ - (((unsigned int)(x) & (unsigned int)0x00ff0000UL) >> 8) | \ - (((unsigned int)(x) & (unsigned int)0xff000000UL) >> 24))) + (((unsigned int)(x) & 0x000000ffUL) << 24) | \ + (((unsigned int)(x) & 0x0000ff00UL) << 8) | \ + (((unsigned int)(x) & 0x00ff0000UL) >> 8) | \ + (((unsigned int)(x) & 0xff000000UL) >> 24))) #define swab64(x) \ ((uint64_t)( \