connection.c: cosmetic cleanup
authorDaniel Mack <daniel@zonque.org>
Tue, 21 Oct 2014 18:52:45 +0000 (20:52 +0200)
committerDaniel Mack <daniel@zonque.org>
Tue, 21 Oct 2014 20:13:25 +0000 (22:13 +0200)
Signed-off-by: Daniel Mack <daniel@zonque.org>
connection.c

index b0876958083738767dc58ff208f756bf1856d79c..04f0538fcf26fc696edd3bae8f65a3d5e5fc79dc 100644 (file)
@@ -363,18 +363,15 @@ static int kdbus_conn_check_access(struct kdbus_ep *ep,
        int ret;
 
        /*
-        * Walk the conn_src's list of expected replies.
-        * If there's any matching entry, allow the message to
-        * be sent, and remove the entry.
+        * Walk the conn_src's list of expected replies. If there's any
+        * matching entry, allow the message to be sent, and remove it.
         */
        if (reply_wake && msg->cookie_reply > 0) {
-               struct kdbus_conn_reply *r, *r_tmp;
+               struct kdbus_conn_reply *r, *tmp;
                LIST_HEAD(reply_list);
 
                mutex_lock(&conn_src->lock);
-               list_for_each_entry_safe(r, r_tmp,
-                                        &conn_src->reply_list,
-                                        entry) {
+               list_for_each_entry_safe(r, tmp, &conn_src->reply_list, entry) {
                        if (r->conn == conn_dst &&
                            r->cookie == msg->cookie_reply) {
                                if (r->sync)
@@ -388,7 +385,7 @@ static int kdbus_conn_check_access(struct kdbus_ep *ep,
                }
                mutex_unlock(&conn_src->lock);
 
-               list_for_each_entry_safe(r, r_tmp, &reply_list, entry)
+               list_for_each_entry_safe(r, tmp, &reply_list, entry)
                        kdbus_conn_reply_free(r);
        }