Commit 8f801baf authored by Philippe Mathieu-Daudé's avatar Philippe Mathieu-Daudé Committed by Michael Tokarev
Browse files

async: use ARRAY_SIZE macro



Applied using the Coccinelle semantic patch scripts/coccinelle/use_osdep.cocci

Signed-off-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
Reviewed-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
parent 01a6df1b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;