From 57119f23677f20b34ec1e3fa6f856dd6a6845c47 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 31 Mar 2019 13:24:42 -0700 Subject: [PATCH] ircd::fs::aio: Minor cleanup. --- ircd/fs_aio.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ircd/fs_aio.cc b/ircd/fs_aio.cc index 1c8ab68b3..f56306575 100644 --- a/ircd/fs_aio.cc +++ b/ircd/fs_aio.cc @@ -429,8 +429,8 @@ try aio_context *idp; syscall(this->max_events(), &idp); return idp; - }(), [] - (const aio_context *const &head) + }(), + [](const aio_context *const &head) { syscall(head); } @@ -445,7 +445,6 @@ try } { assert(head->magic == aio_context::MAGIC); - assert(sizeof(aio_context) == head->header_length); if(unlikely(head->magic != aio_context::MAGIC)) throw panic { @@ -454,6 +453,7 @@ try aio_context::MAGIC, }; + assert(sizeof(aio_context) == head->header_length); if(unlikely(head->header_length != sizeof(*head))) throw panic {