aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2024-03-27 18:40:33 -0700
committerAndi Kleen <andi@firstfloor.org>2024-03-27 18:40:33 -0700
commit569b3cea0953f2ea0212dfaf16cbcc6731fb9965 (patch)
treed49671dc9625574377c28a2d6f20ec596d340b9b
parentc0f843b8a88f8634403eea32177cb2fdc7e1b685 (diff)
downloadmcelog-569b3cea0953f2ea0212dfaf16cbcc6731fb9965.tar.gz
mcelog: Fix clang warnings
-rw-r--r--config.c2
-rw-r--r--granite.c20
2 files changed, 11 insertions, 11 deletions
diff --git a/config.c b/config.c
index df94594..ff123d1 100644
--- a/config.c
+++ b/config.c
@@ -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");
}
diff --git a/granite.c b/granite.c
index a573891..76c3665 100644
--- a/granite.c
+++ b/granite.c
@@ -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[] = {