aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/arch/linux/common/modules.h
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2007-06-30 01:31:54 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2007-06-30 01:31:54 +0000
commit1f101bcb3952ce79440d0236313f3ed11cba2aaa (patch)
tree43d42b9665f52396b847c169ff4c312a8ecf9a15 /hardinfo2/arch/linux/common/modules.h
parent2d366bc8caf8083b66deaa09435f2dc93ffc9a69 (diff)
Cleanups, fix crashes.
Diffstat (limited to 'hardinfo2/arch/linux/common/modules.h')
-rw-r--r--hardinfo2/arch/linux/common/modules.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/hardinfo2/arch/linux/common/modules.h b/hardinfo2/arch/linux/common/modules.h
index 9b895ee8..54e77ddb 100644
--- a/hardinfo2/arch/linux/common/modules.h
+++ b/hardinfo2/arch/linux/common/modules.h
@@ -26,12 +26,7 @@
static gboolean
remove_module_devices(gpointer key, gpointer value, gpointer data)
{
- if (!strncmp((gchar *) key, "MOD", 3)) {
- g_free((gchar *) key);
- g_free((GtkTreeIter *) value);
- return TRUE;
- }
- return FALSE;
+ return g_str_has_prefix(key, "MOD");
}
static void