connection: conditional branch cleanups
authorDaniel Mack <daniel@zonque.org>
Tue, 28 Oct 2014 11:43:43 +0000 (12:43 +0100)
committerDaniel Mack <daniel@zonque.org>
Tue, 28 Oct 2014 11:43:43 +0000 (12:43 +0100)
Use an else branch for better readability.

Signed-off-by: Daniel Mack <daniel@zonque.org>
connection.c

index 2a1745b8d6a9ff97e4c74731272114355aee5088..13ad1d4de262de870b4cfde9880056288dd8b75a 100644 (file)
@@ -878,9 +878,7 @@ int kdbus_conn_kmsg_send(struct kdbus_ep *ep,
 
                if (ret < 0)
                        goto exit_unref;
-       }
-
-       if (!reply_wake) {
+       } else {
                /*
                 * Otherwise, put it in the queue and wait for the connection
                 * to dequeue and receive the message.