]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/rdma: Cosmetic change - no need for two sge arrays
authorYuval Shaia <yuval.shaia.ml@gmail.com>
Fri, 20 Mar 2020 14:34:28 +0000 (16:34 +0200)
committerMarcel Apfelbaum <marcel.apfelbaum@gmail.com>
Sat, 21 Mar 2020 17:16:02 +0000 (19:16 +0200)
commitf23601515b61ffe23398079cbfd6be0b9b99ec02
treeb1b08c3c9d6465c87e926851dd0383e6b9ccc97a
parent1d2695ef02771f8adecf6b173ad7bcd8ddbaec67
hw/rdma: Cosmetic change - no need for two sge arrays

The function build_host_sge_array uses two sge arrays, one for input and
one for output.
Since the size of the two arrays is the same, the function can write
directly to the given source array (i.e. input/output argument).

Signed-off-by: Yuval Shaia <yuval.shaia.ml@gmail.com>
Reviewed-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Message-Id: <20200320143429.9490-2-yuval.shaia.ml@gmail.com>
Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
hw/rdma/rdma_backend.c