Cleanup: cast poll delay return value to void
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 29 Jun 2015 20:47:39 +0000 (16:47 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 29 Jun 2015 20:47:39 +0000 (16:47 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu/static/wfcqueue.h
urcu/static/wfstack.h

index 48b2625dd3a4d0b28450dac4d7d0f7df921028c7..7c9d5483ddb2622aaf533455914bd7abf7645fe0 100644 (file)
@@ -221,7 +221,7 @@ ___cds_wfcq_busy_wait(int *attempt, int blocking)
        if (!blocking)
                return 1;
        if (++(*attempt) >= WFCQ_ADAPT_ATTEMPTS) {
-               poll(NULL, 0, WFCQ_WAIT);       /* Wait for 10ms */
+               (void) poll(NULL, 0, WFCQ_WAIT);        /* Wait for 10ms */
                *attempt = 0;
        } else {
                caa_cpu_relax();
index 261ff2c2a46ab278ee8f1324db1e406e02b4a1ca..2666b0ef3ff806435ea81710e6add099b90e44af 100644 (file)
@@ -160,7 +160,7 @@ ___cds_wfs_node_sync_next(struct cds_wfs_node *node, int blocking)
                if (!blocking)
                        return CDS_WFS_WOULDBLOCK;
                if (++attempt >= CDS_WFS_ADAPT_ATTEMPTS) {
-                       poll(NULL, 0, CDS_WFS_WAIT);    /* Wait for 10ms */
+                       (void) poll(NULL, 0, CDS_WFS_WAIT);     /* Wait for 10ms */
                        attempt = 0;
                } else {
                        caa_cpu_relax();
This page took 0.03593 seconds and 4 git commands to generate.