From 68740373619824398f0c16c39ca12ed8ac1e275c Mon Sep 17 00:00:00 2001 From: rbuj Date: Sun, 28 Nov 2021 09:33:35 +0100 Subject: Redundant null check --- plugins/smu-sys/smu-sys-plugin.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'plugins/smu-sys') diff --git a/plugins/smu-sys/smu-sys-plugin.c b/plugins/smu-sys/smu-sys-plugin.c index fbf3ff6..f5940fd 100644 --- a/plugins/smu-sys/smu-sys-plugin.c +++ b/plugins/smu-sys/smu-sys-plugin.c @@ -88,9 +88,7 @@ static void smu_sys_plugin_add_sensor(GList **sensors, const gchar *path) { } g_free(filename); - if (label != NULL) { - g_free(label); - } + g_free(label); } static void smu_sys_plugin_test_sensor(GList **sensors, const gchar *path) { -- cgit v1.2.1