diff options
author | Andi Kleen <andi@firstfloor.org> | 2024-03-27 18:40:33 -0700 |
---|---|---|
committer | Andi Kleen <andi@firstfloor.org> | 2024-03-27 18:40:33 -0700 |
commit | 569b3cea0953f2ea0212dfaf16cbcc6731fb9965 (patch) | |
tree | d49671dc9625574377c28a2d6f20ec596d340b9b | |
parent | c0f843b8a88f8634403eea32177cb2fdc7e1b685 (diff) | |
download | mcelog-569b3cea0953f2ea0212dfaf16cbcc6731fb9965.tar.gz |
mcelog: Fix clang warnings
-rw-r--r-- | config.c | 2 | ||||
-rw-r--r-- | granite.c | 20 |
2 files changed, 11 insertions, 11 deletions
@@ -95,7 +95,7 @@ static void noreturn parse_error(int line, char *msg) static void nothing(char *s, int line) { - if (!empty(s) != 0) + if (!empty(s)) parse_error(line, "left over characters at end of line"); } @@ -94,16 +94,16 @@ static struct field punit2[] = { }; static char *b2cmi_1[] = { - [0x01] "Read ECC error", - [0x02] "Bucket1 error", - [0x03] "Tracker Parity error", - [0x04] "Security mismatch", - [0x07] "Read completion parity error", - [0x08] "Response parity error", - [0x09] "Timeout error", - [0x0a] "Address parity error", - [0x0c] "CMI credit over subscription error", - [0x0d] "SAI mismatch error", + [0x01] = "Read ECC error", + [0x02] = "Bucket1 error", + [0x03] = "Tracker Parity error", + [0x04] = "Security mismatch", + [0x07] = "Read completion parity error", + [0x08] = "Response parity error", + [0x09] = "Timeout error", + [0x0a] = "Address parity error", + [0x0c] = "CMI credit over subscription error", + [0x0d] = "SAI mismatch error", }; static struct field b2cmi1[] = { |