SPICE: Use DIV_ROUND_UP
commit5d61cafd0b1c77e154a9777c07b675f840d7fbd7
authorLaurent Vivier <lvivier@redhat.com>
Tue, 31 May 2016 16:35:58 +0000 (31 18:35 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 7 Jun 2016 15:19:25 +0000 (7 18:19 +0300)
treeef01ac6d2b3529cfad6d4474da5afb79d6fa41d8
parentb988a650b16a074bc3727fcb20591f50e29ceca9
SPICE: 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: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
ui/spice-display.c