engines/rdma: remove dead code
authorPavel Reichl <preichl@redhat.com>
Fri, 15 Dec 2023 17:43:16 +0000 (18:43 +0100)
committerPavel Reichl <preichl@redhat.com>
Fri, 15 Dec 2023 17:44:24 +0000 (18:44 +0100)
The issues was found by Red Hat's OpenScanHub:

    fio-3.35/engines/rdma.c:279:3: warning[deadcode.DeadStores]:
            Value stored to 'ret' is never read

Signed-off-by: Pavel Reichl <preichl@redhat.com>
engines/rdma.c

index ebdbcb1c808a524c5eff480ae70a8bc9109fcf40..07336f3b889f1dc6441bcd787f49b673e56a733a 100644 (file)
@@ -276,7 +276,6 @@ static int cq_event_handler(struct thread_data *td, enum ibv_wc_opcode opcode)
        int i;
 
        while ((ret = ibv_poll_cq(rd->cq, 1, &wc)) == 1) {
-               ret = 0;
                compevnum++;
 
                if (wc.status) {