diff options
author | rbuj <[email protected]> | 2020-12-21 15:39:17 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-12-28 17:22:27 +0100 |
commit | 9bc69fd715b8bb45c0c45a27c71ce2cc49b0c7d3 (patch) | |
tree | 09b866afe25a5010e01b5f13b8d353f0d1a27bb0 /plugins/ibm-acpi | |
parent | 80dffdc6078fd319c5f31248f3896b192d773a60 (diff) | |
download | mate-sensors-applet-9bc69fd715b8bb45c0c45a27c71ce2cc49b0c7d3.tar.bz2 mate-sensors-applet-9bc69fd715b8bb45c0c45a27c71ce2cc49b0c7d3.tar.xz |
Remove cppcheck warnings about the variable scope can be reduced
Diffstat (limited to 'plugins/ibm-acpi')
-rw-r--r-- | plugins/ibm-acpi/ibm-acpi-plugin.c | 3 |
1 files changed, 1 insertions, 2 deletions
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 */ |