From: Daniel Mack Date: Tue, 28 Oct 2014 11:43:43 +0000 (+0100) Subject: connection: conditional branch cleanups X-Git-Tag: upstream/0.20141102.012929utc~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f2caaa4f4ac4948938b539c54bd4c9168b351ce4;p=platform%2Fcore%2Fsystem%2Fkdbus-bus.git connection: conditional branch cleanups Use an else branch for better readability. Signed-off-by: Daniel Mack --- diff --git a/connection.c b/connection.c index 2a1745b..13ad1d4 100644 --- a/connection.c +++ b/connection.c @@ -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.