From 9bc69fd715b8bb45c0c45a27c71ce2cc49b0c7d3 Mon Sep 17 00:00:00 2001 From: rbuj Date: Mon, 21 Dec 2020 15:39:17 +0100 Subject: Remove cppcheck warnings about the variable scope can be reduced --- plugins/ibm-acpi/ibm-acpi-plugin.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/ibm-acpi/ibm-acpi-plugin.c') diff --git a/plugins/ibm-acpi/ibm-acpi-plugin.c b/plugins/ibm-acpi/ibm-acpi-plugin.c index f659278..1a7437f 100644 --- a/plugins/ibm-acpi/ibm-acpi-plugin.c +++ b/plugins/ibm-acpi/ibm-acpi-plugin.c @@ -50,9 +50,8 @@ enum { static void ibm_acpi_plugin_setup_manually(GList **sensors) { - gchar *label; - if (g_file_test(IBM_ACPI_TEMPERATURE_FILE, G_FILE_TEST_EXISTS)) { + gchar *label; /* with Ibm_Acpi have 8 fixed sensors, all accessed from the IBM_ACPI_TEMPERATURE_FILE */ -- cgit v1.2.1