From 99712583b0db500ed48d6eb4e10fd0f83f71ab63 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Wed, 25 Dec 2013 00:20:06 +0100 Subject: [PATCH] return error in kdbus_name_release() --- names.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/names.c b/names.c index f5d226b..a5f93e0 100644 --- a/names.c +++ b/names.c @@ -209,10 +209,8 @@ static int kdbus_name_release(struct kdbus_name_entry *e, struct kdbus_name_queue_item *q_tmp, *q; /* Is the connection already the real owner of the name? */ - if (e->conn == conn) { - kdbus_name_entry_release(e, notify_list); - return 0; - } + if (e->conn == conn) + return kdbus_name_entry_release(e, notify_list); /* * Otherwise, walk the list of queued entries and search for -- 2.34.1