Cleanup: iterator unused pointer value
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 14 Dec 2013 15:55:04 +0000 (10:55 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 14 Dec 2013 16:02:09 +0000 (11:02 -0500)
Found by Coverity:

** CID 1136757:  Unused pointer value  (UNUSED_VALUE)
/lib/iterator.c: 831 in bt_iter_next()

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lib/iterator.c

index 853898d33e995e7004c177bff0d5782272c9898c..48c67a4031fb07167d61233a17b66b11f58df964 100644 (file)
@@ -827,9 +827,6 @@ reinsert:
        /* Reinsert the file stream into the heap, and rebalance. */
        removed = bt_heap_replace_max(iter->stream_heap, file_stream);
        assert(removed == file_stream);
-
-       file_stream = bt_heap_maximum(iter->stream_heap);
-
 end:
        return ret;
 }
This page took 0.026371 seconds and 4 git commands to generate.