OSDN Git Service

usb: Use DIV_ROUND_UP
authorLaurent Vivier <lvivier@redhat.com>
Tue, 31 May 2016 16:36:00 +0000 (18:36 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 7 Jun 2016 15:19:25 +0000 (18:19 +0300)
commit66c68a12ae688d16c4037cbe730109108edaf84c
treec0acfb5d9dfdc7ee49d31443bb3e4884285fde50
parentdf5d1c17b6d9a436a3fcedcc16fa6fb8d28d2f07
usb: 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>
hw/usb/redirect.c