From 2b9a7882119e45a0c4cb2414016801f50db29b92 Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Tue, 24 Jun 2014 11:24:49 +0200 Subject: [PATCH] connection: clean up conditional code path For broadcasts, we return anway, so there's no point in an 'else' branch. --- connection.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/connection.c b/connection.c index 993d7b6..7fc6342 100644 --- a/connection.c +++ b/connection.c @@ -1271,8 +1271,9 @@ int kdbus_conn_kmsg_send(struct kdbus_ep *ep, mutex_unlock(&bus->lock); return 0; + } - } else if (msg->dst_id == KDBUS_DST_ID_NAME) { + if (msg->dst_id == KDBUS_DST_ID_NAME) { /* unicast message to well-known name */ BUG_ON(!kmsg->dst_name); -- 2.34.1