qemu-timer: Use DIV_ROUND_UP
commit5029b969d1475fad8f294be6edaa66d280df3039
authorLaurent Vivier <lvivier@redhat.com>
Tue, 31 May 2016 16:36:04 +0000 (31 18:36 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 7 Jun 2016 15:19:25 +0000 (7 18:19 +0300)
tree9a20363471fe97fe20c730f3038de32f1d038a21
parentb1b2db29bd6c3ed70c29778d8fec0f4bf6ae28ec
qemu-timer: Use DIV_ROUND_UP

Replace (((n) + (d) - 1) /(d)) by DIV_ROUND_UP(n,d).

This patch is the result of coccinelle script
scripts/coccinelle/round.cocci

CC: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
qemu-timer.c