From: Mauro Carvalho Chehab Date: Mon, 18 Nov 2024 13:03:26 +0000 (+0100) Subject: ras-page-isolation: drop an unused variable X-Git-Tag: v0.8.2~22 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=1f5607c527e20e79bc49dcb98fe1ca29995749d1;p=users%2Fmchehab%2Frasdaemon.git ras-page-isolation: drop an unused variable There's no need to store the value of strtoul() during the overflow check. Remove it, as this is causing a warning: ras-page-isolation.c: In function ‘parse_isolation_env’: ras-page-isolation.c:166:47: warning: unused variable ‘converted_value’ [-Wunused-variable] 166 | unsigned long converted_value = strtoul(config->env, &endptr, 10); | ^~~~~~~~~~~~~~~ Signed-off-by: Mauro Carvalho Chehab --- diff --git a/ras-page-isolation.c b/ras-page-isolation.c index 0ea36f6..6fc7c4c 100644 --- a/ras-page-isolation.c +++ b/ras-page-isolation.c @@ -163,7 +163,8 @@ parse: */ if (units->val == 1) { char *endptr; - unsigned long converted_value = strtoul(config->env, &endptr, 10); + + strtoul(config->env, &endptr, 10); if (errno == ERANGE || *endptr != '\0') config->overflow = true; }