mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
ircd::fs::aio: Minor cleanup.
This commit is contained in:
parent
40b3bdaa89
commit
57119f2367
1 changed files with 3 additions and 3 deletions
|
@ -429,8 +429,8 @@ try
|
|||
aio_context *idp;
|
||||
syscall<SYS_io_setup>(this->max_events(), &idp);
|
||||
return idp;
|
||||
}(), []
|
||||
(const aio_context *const &head)
|
||||
}(),
|
||||
[](const aio_context *const &head)
|
||||
{
|
||||
syscall<SYS_io_destroy>(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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue