From ed303310bb3e1891464cacb283feb998049b84fb Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 6 Oct 2021 13:40:48 -0700 Subject: [PATCH] Spell out slightly more; this makes debugging a touch easier. --- Storage/Disk/Controller/DiskController.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Storage/Disk/Controller/DiskController.cpp b/Storage/Disk/Controller/DiskController.cpp index 1cba5d39a..9ad93661e 100644 --- a/Storage/Disk/Controller/DiskController.cpp +++ b/Storage/Disk/Controller/DiskController.cpp @@ -28,7 +28,8 @@ ClockingHint::Preference Controller::preferred_clocking() const { // Nominate RealTime clocking if any drive currently wants any clocking whatsoever. // Otherwise, ::None will do. for(auto &drive: drives_) { - if(drive.preferred_clocking() != ClockingHint::Preference::None) { + const auto preferred_clocking = drive.preferred_clocking(); + if(preferred_clocking != ClockingHint::Preference::None) { return ClockingHint::Preference::RealTime; } }