connection: clean up conditional code path
authorDaniel Mack <zonque@gmail.com>
Tue, 24 Jun 2014 09:24:49 +0000 (11:24 +0200)
committerDaniel Mack <zonque@gmail.com>
Tue, 24 Jun 2014 09:24:51 +0000 (11:24 +0200)
For broadcasts, we return anway, so there's no point in an 'else' branch.

connection.c

index 993d7b658c163db316feb3cc819eafd97489cfed..7fc63425c2d6c366b64185a141601d90610af196 100644 (file)
@@ -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);