[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 23/29] async: use ARRAY_SIZE macro
From: |
Marc-André Lureau |
Subject: |
Re: [Qemu-devel] [PATCH 23/29] async: use ARRAY_SIZE macro |
Date: |
Tue, 18 Jul 2017 03:54:23 -0700 |
On Mon, Jul 17, 2017 at 11:09 PM, Philippe Mathieu-Daudé
<address@hidden> wrote:
> Applied using the Coccinelle semantic patch scripts/coccinelle/use_osdep.cocci
>
> Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Marc-André Lureau <address@hidden>
> ---
> util/aio-posix.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/util/aio-posix.c b/util/aio-posix.c
> index 2d51239ec6..e89fd7024a 100644
> --- a/util/aio-posix.c
> +++ b/util/aio-posix.c
> @@ -119,7 +119,7 @@ static int aio_epoll(AioContext *ctx, GPollFD *pfds,
> }
> if (timeout <= 0 || ret > 0) {
> ret = epoll_wait(ctx->epollfd, events,
> - sizeof(events) / sizeof(events[0]),
> + ARRAY_SIZE(events),
> timeout);
> if (ret <= 0) {
> goto out;
> --
> 2.13.2
>
>
--
Marc-André Lureau
- Re: [Qemu-devel] [PATCH 19/29] disas: use QEMU_IS_ALIGNED macro, (continued)
- [Qemu-devel] [PATCH 20/29] disas: use ARRAY_SIZE macro, Philippe Mathieu-Daudé, 2017/07/18
- [Qemu-devel] [PATCH 21/29] qga: use ARRAY_SIZE macro, Philippe Mathieu-Daudé, 2017/07/18
- [Qemu-devel] [PATCH 22/29] vmsvga: use ARRAY_SIZE macro, Philippe Mathieu-Daudé, 2017/07/18
- [Qemu-devel] [PATCH 23/29] async: use ARRAY_SIZE macro, Philippe Mathieu-Daudé, 2017/07/18
- Re: [Qemu-devel] [PATCH 23/29] async: use ARRAY_SIZE macro,
Marc-André Lureau <=
- [Qemu-devel] [PATCH 24/29] tests/acpi: use ARRAY_SIZE macro, Philippe Mathieu-Daudé, 2017/07/18
- [Qemu-devel] [PATCH 25/29] libqos: use ARRAY_SIZE macro, Philippe Mathieu-Daudé, 2017/07/18
- [Qemu-devel] [PATCH 26/29] tests/tcg: use ARRAY_SIZE macro, Philippe Mathieu-Daudé, 2017/07/18