More of the same.

Postfix/prefix increment evaluation order is not changed by parantheses. Use '+ 1' for readability instead. CID 2982.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39966 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Fredrik Holmqvist
2010-12-27 20:47:27 +00:00
parent 0ef0a587b6
commit 31474ccaa0
+2 -2
View File
@@ -54,7 +54,7 @@ dpc_thread(void *arg)
acquire_spinlock(&queue->lock);
dpc = queue->slots[queue->head];
queue->head = (queue->head++) % queue->size;
queue->head = (queue->head + 1) % queue->size;
queue->count--;
release_spinlock(&queue->lock);
@@ -67,7 +67,7 @@ dpc_thread(void *arg)
// Otherwise, resource could leaks...
while (queue->count--) {
dpc = queue->slots[queue->head];
queue->head = (queue->head++) % queue->size;
queue->head = (queue->head + 1) % queue->size;
dpc.function(dpc.arg);
}