]> www.infradead.org Git - users/mchehab/rasdaemon.git/commit
ras-page-isolation: drop an unused variable
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 18 Nov 2024 13:03:26 +0000 (14:03 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 18 Nov 2024 13:03:26 +0000 (14:03 +0100)
commit1f5607c527e20e79bc49dcb98fe1ca29995749d1
tree810d3978dbd4e8e8b3c480d8008232ff20e07590
parent683feacf378db0217b8ab421e0a694b0b68188c9
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 <mchehab+huawei@kernel.org>
ras-page-isolation.c