diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/nvramtool/cmos_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/nvramtool/cmos_ops.c b/util/nvramtool/cmos_ops.c index 2bbc8a1df6..91c9f451ac 100644 --- a/util/nvramtool/cmos_ops.c +++ b/util/nvramtool/cmos_ops.c @@ -210,7 +210,7 @@ uint16_t cmos_checksum_compute(void) for (i = cmos_checksum_start; i <= cmos_checksum_end; i++) sum += cmos_read_byte(i); - return ~((uint16_t) (sum & 0xffff)); + return (uint16_t)(sum & 0xffff); } /**************************************************************************** |