summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-01-21 19:11:35 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-01-21 19:11:35 +0000
commitcb3478520fc9ea7296c9b393721a47e6744801c8 (patch)
treeb9dcb5780b557892653e8c3ae36be6c748932d8d
parent22920bd5c9ee7e8f42ab695a0667cdc6deee5cf9 (diff)
g_key_file_new will never return NULL
-rw-r--r--hcid/dbus-service.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/hcid/dbus-service.c b/hcid/dbus-service.c
index 5d14e1c3..a9532a3b 100644
--- a/hcid/dbus-service.c
+++ b/hcid/dbus-service.c
@@ -714,11 +714,6 @@ static struct service *create_service(const char *file)
}
keyfile = g_key_file_new();
- if (!keyfile) {
- error("OOM while allocating key file");
- service_free(service);
- return NULL;
- }
if (!g_key_file_load_from_file(keyfile, file, 0, &err)) {
error("Parsing %s failed: %s", file, err->message);