summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Stuge <peter@stuge.se>2010-05-17 07:29:47 +0000
committerPeter Stuge <peter@stuge.se>2010-05-17 07:29:47 +0000
commit87964864ae43bca67542f098b99a5ead49676019 (patch)
treecffc78195a562eb9b3ee1316e92da1a1ce5efee8
parent417e66baa527c9bd843992e7ba163ebabb08b197 (diff)
downloadcoreboot-87964864ae43bca67542f098b99a5ead49676019.tar.xz
msrtool: Remove some unneeded casts
Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5565 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--util/msrtool/msrutils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/msrtool/msrutils.c b/util/msrtool/msrutils.c
index de3333e6db..5345275e4b 100644
--- a/util/msrtool/msrutils.c
+++ b/util/msrtool/msrutils.c
@@ -77,11 +77,11 @@ static void print_bitval(FILE *f, const struct msrbits *mb, const struct msr val
void hexprint(FILE *f, const struct msr val, const uint8_t bits) {
if (bits <= 4)
- fprintf(f, "0x%x", (uint8_t)(val.lo & 0x0f));
+ fprintf(f, "0x%x", val.lo & 0x0f);
else if (bits <= 8)
- fprintf(f, "0x%02x", (uint8_t)(val.lo & 0xff));
+ fprintf(f, "0x%02x", val.lo & 0xff);
else if (bits <= 16)
- fprintf(f, "0x%04x", (uint16_t)(val.lo & 0xffff));
+ fprintf(f, "0x%04x", val.lo & 0xffff);
else if (bits <= 32)
fprintf(f, "0x%08x", val.lo);
else