From c6ae2a4bbbb66c35bb9bf0a091642689f79c0d80 Mon Sep 17 00:00:00 2001 From: Piotr Sieduszewski Date: Wed, 12 May 2021 16:28:46 +0200 Subject: [PATCH] Simplification dir_init_done --- iocore/cache/Cache.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/iocore/cache/Cache.cc b/iocore/cache/Cache.cc index 3604908b242..11f33ad3605 100644 --- a/iocore/cache/Cache.cc +++ b/iocore/cache/Cache.cc @@ -1782,11 +1782,7 @@ Vol::dir_init_done(int /* event ATS_UNUSED */, void * /* data ATS_UNUSED */) ink_assert(!gvol[vol_no]); gvol[vol_no] = this; SET_HANDLER(&Vol::aggWrite); - if (fd == -1) { - cache->vol_initialized(false); - } else { - cache->vol_initialized(true); - } + cache->vol_initialized(fd != -1); return EVENT_DONE; } }