Skip to content

Commit

Permalink
Fix unintended compiler constant folding
Browse files Browse the repository at this point in the history
Pointed out by:	dim@
  • Loading branch information
bryanv committed Sep 3, 2013
1 parent 67d6bf7 commit b59e843
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/dev/virtio/virtqueue.c
Expand Up @@ -449,10 +449,10 @@ virtqueue_postpone_intr(struct virtqueue *vq, vq_postpone_t hint)

switch (hint) {
case VQ_POSTPONE_SHORT:
ndesc /= 4;
ndesc = ndesc / 4;
break;
case VQ_POSTPONE_LONG:
ndesc *= 3 / 4;
ndesc = (ndesc * 3) / 4;
break;
case VQ_POSTPONE_EMPTIED:
break;
Expand Down

0 comments on commit b59e843

Please sign in to comment.