summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2017-03-07 15:57:05 -0800
committerLee Leahy <leroy.p.leahy@intel.com>2017-03-13 17:20:15 +0100
commitb7e692e0162d51c10c55591822ff8a7053f70056 (patch)
treea02ea272a7149d70b893f129184de20b9e405461 /src/include
parent22c28e0f6aa6aa66828e575b552baf8fb23c3b82 (diff)
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: I137efa55e945d1315322df2a38d70716a3807a1e Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com> Reviewed-on: https://review.coreboot.org/18658 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/swab.h8
1 files 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)( \