diff options
author | Daniel Mack <daniel@zonque.org> | 2014-10-07 14:43:18 +0200 |
---|---|---|
committer | Daniel Mack <daniel@zonque.org> | 2014-10-07 14:43:18 +0200 |
commit | 76db77792371380fbe6698d042ee5054e72bc4af (patch) | |
tree | f506fe94c7074ab825608381b5f5840c2db6faf0 /test | |
parent | 3f12d06a7001714454131466c41958f69c2f8b88 (diff) | |
download | kdbus-bus-76db77792371380fbe6698d042ee5054e72bc4af.tar.gz kdbus-bus-76db77792371380fbe6698d042ee5054e72bc4af.tar.bz2 kdbus-bus-76db77792371380fbe6698d042ee5054e72bc4af.zip |
test: fix some 'dead assignment' errors
Diffstat (limited to 'test')
-rw-r--r-- | test/test-benchmark.c | 2 | ||||
-rw-r--r-- | test/test-fd.c | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/test/test-benchmark.c b/test/test-benchmark.c index 5a04be6a95b..18fe68ad67f 100644 --- a/test/test-benchmark.c +++ b/test/test-benchmark.c @@ -131,7 +131,6 @@ send_echo_request(struct kdbus_conn *conn, uint64_t dst_id) item->size = KDBUS_ITEM_HEADER_SIZE + sizeof(struct kdbus_memfd); item->memfd.size = sizeof(now_ns); item->memfd.fd = memfd; - item = KDBUS_ITEM_NEXT(item); } ret = ioctl(conn->fd, KDBUS_CMD_MSG_SEND, msg); @@ -159,7 +158,6 @@ handle_echo_reply(struct kdbus_conn *conn, uint64_t send_ns) ASSERT_RETURN_VAL(ret == 0, -errno); msg = (struct kdbus_msg *)(conn->buf + recv.offset); - item = msg->items; KDBUS_ITEM_FOREACH(item, msg, items) { switch (item->type) { diff --git a/test/test-fd.c b/test/test-fd.c index ffbad9c9607..77437d02767 100644 --- a/test/test-fd.c +++ b/test/test-fd.c @@ -40,7 +40,6 @@ static int send_fd(struct kdbus_conn *conn, uint64_t dst_id, int fd) item->type = KDBUS_ITEM_FDS; item->size = KDBUS_ITEM_HEADER_SIZE + sizeof(int); item->fds[0] = fd; - item = KDBUS_ITEM_NEXT(item); ret = ioctl(conn->fd, KDBUS_CMD_MSG_SEND, msg); if (ret) { |