]> git.proxmox.com Git - mirror_qemu.git/commit - block/qed-check.c
qed: Use DIV_ROUND_UP
authorLaurent Vivier <lvivier@redhat.com>
Tue, 31 May 2016 16:35:53 +0000 (18:35 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 7 Jun 2016 15:19:24 +0000 (18:19 +0300)
commitc41a73ffaf40aadc2c1e038ae4d12b62cd578e7f
tree04c3d19dc758f1d2318ab1dacfca59af41997cdd
parentd737b78cc13d2ab94ffa4478da59931165cb1f4e
qed: 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: qemu-block@nongnu.org
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
block/qed-check.c
block/qed.c