Blame SOURCES/0003-adaptive-Remove-useless-NULL-check.patch

14acf4
From 268349088e0931421da65f4dce6997f197a10b12 Mon Sep 17 00:00:00 2001
14acf4
From: Benjamin Berg <bberg@redhat.com>
14acf4
Date: Thu, 10 Dec 2020 11:37:27 +0100
14acf4
Subject: [PATCH 3/3] adaptive: Remove useless NULL check
14acf4
14acf4
_zone cannot be NULL in update_engine_state. Remove a useless check that
14acf4
would have caused a crash earlier already.
14acf4
---
14acf4
 src/thd_engine_adaptive.cpp | 2 +-
14acf4
 1 file changed, 1 insertion(+), 1 deletion(-)
14acf4
14acf4
diff --git a/src/thd_engine_adaptive.cpp b/src/thd_engine_adaptive.cpp
14acf4
index b68cc40..bc16ad2 100644
14acf4
--- a/src/thd_engine_adaptive.cpp
14acf4
+++ b/src/thd_engine_adaptive.cpp
14acf4
@@ -1454,7 +1454,7 @@ void cthd_engine_adaptive::update_engine_state() {
14acf4
 				_zone->zone_reset(1);
14acf4
 				_zone->trip_delete_all();
14acf4
 
14acf4
-				if (_zone && _zone->zone_active_status())
14acf4
+				if (_zone->zone_active_status())
14acf4
 					_zone->set_zone_inactive();
14acf4
 			}
14acf4
 
14acf4
-- 
14acf4
2.26.2
14acf4