virtio-serial: use DIV_ROUND_UP
commit7b9a27cdbb5b510c7826b816f20259131169f9cd
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 22 Jun 2017 11:04:16 +0000 (22 13:04 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 31 Aug 2017 10:29:07 +0000 (31 12:29 +0200)
tree423bf8b684916774a748309105f8f4f4370f3fe4
parentd1a0945f8412ab52ad523397d82be61ba835ae27
virtio-serial: use DIV_ROUND_UP

I used the clang-tidy qemu-round check to generate the fix:
https://github.com/elmarco/clang-tools-extra

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Reviewed-by: Amit Shah <amit@kernel.org>
hw/char/virtio-serial-bus.c