queue: drop unused function parameter
authorDaniel Mack <daniel@zonque.org>
Tue, 23 Dec 2014 19:34:10 +0000 (20:34 +0100)
committerDaniel Mack <daniel@zonque.org>
Tue, 23 Dec 2014 19:34:10 +0000 (20:34 +0100)
kdbus_queue_entry_move() doesn't use its first parameter 'conn_src'
for anything, so drop it.

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

index e61088e98c7a1674bb989355b9db40c4f904a055..35bc60fa1b0a94f218e3945158dbf05f7b661f6b 100644 (file)
@@ -1344,7 +1344,7 @@ int kdbus_conn_move_messages(struct kdbus_conn *conn_dst,
        }
 
        list_for_each_entry_safe(q, q_tmp, &msg_list, entry) {
-               ret = kdbus_queue_entry_move(conn_src, conn_dst, q);
+               ret = kdbus_queue_entry_move(conn_dst, q);
                if (ret < 0)
                        break;
        }
diff --git a/queue.c b/queue.c
index b52dfff51f1973503d953a2e39a5ca0d2219fc99..cfaae5e598af62304d743fbca936299516fccdb1 100644 (file)
--- a/queue.c
+++ b/queue.c
@@ -451,14 +451,12 @@ exit_free:
 
 /**
  * kdbus_queue_entry_move() - move an entry from one queue to another
- * @conn_src:  Connection holding the queue to copy from
  * @conn_dst:  Connection holding the queue to copy to
  * @entry:     The queue entry to move
  *
  * Return: 0 on success, nagative error otherwise
  */
-int kdbus_queue_entry_move(struct kdbus_conn *conn_src,
-                          struct kdbus_conn *conn_dst,
+int kdbus_queue_entry_move(struct kdbus_conn *conn_dst,
                           struct kdbus_queue_entry *entry)
 {
        int ret = 0;
diff --git a/queue.h b/queue.h
index 667381f8ea96fb165063ca4fbeba8660c15f891b..f3b0891999360706940e39bde1904001adf61e4f 100644 (file)
--- a/queue.h
+++ b/queue.h
@@ -87,8 +87,7 @@ void kdbus_queue_init(struct kdbus_queue *queue);
 struct kdbus_queue_entry *
 kdbus_queue_entry_alloc(struct kdbus_pool *pool,
                        const struct kdbus_kmsg *kmsg);
-int kdbus_queue_entry_move(struct kdbus_conn *conn_src,
-                          struct kdbus_conn *conn_dst,
+int kdbus_queue_entry_move(struct kdbus_conn *conn_dst,
                           struct kdbus_queue_entry *entry);
 void kdbus_queue_entry_free(struct kdbus_queue_entry *entry);