From f2caaa4f4ac4948938b539c54bd4c9168b351ce4 Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Tue, 28 Oct 2014 12:43:43 +0100 Subject: [PATCH] connection: conditional branch cleanups Use an else branch for better readability. Signed-off-by: Daniel Mack --- connection.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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. -- 2.34.1