Author: stuge
Date: Mon May 17 09:29:47 2010
New Revision: 5565
URL: https://tracker.coreboot.org/trac/coreboot/changeset/5565

Log:
msrtool: Remove some unneeded casts

Signed-off-by: Peter Stuge <[email protected]>
Acked-by: Peter Stuge <[email protected]>

Modified:
   trunk/util/msrtool/msrutils.c

Modified: trunk/util/msrtool/msrutils.c
==============================================================================
--- trunk/util/msrtool/msrutils.c       Mon May 17 00:32:58 2010        (r5564)
+++ trunk/util/msrtool/msrutils.c       Mon May 17 09:29:47 2010        (r5565)
@@ -77,11 +77,11 @@
 
 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

-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to