Blame SOURCES/0010-all-Remove-unreachable-code.patch

85793c
From 9e94a4349186f7353e0d7b536b46bfa4df2483d0 Mon Sep 17 00:00:00 2001
85793c
From: Ming-Hung Tsai <mtsai@redhat.com>
85793c
Date: Wed, 2 Jun 2021 14:59:29 +0800
85793c
Subject: [PATCH 10/10] [all] Remove unreachable code
85793c
85793c
---
85793c
 block-cache/io_engine.cc | 3 ---
85793c
 caching/hint_array.cc    | 6 ------
85793c
 2 files changed, 9 deletions(-)
85793c
85793c
diff --git a/block-cache/io_engine.cc b/block-cache/io_engine.cc
85793c
index 2fe4082..0158723 100644
85793c
--- a/block-cache/io_engine.cc
85793c
+++ b/block-cache/io_engine.cc
85793c
@@ -174,9 +174,6 @@ aio_engine::wait_(timespec *ts)
85793c
 		cbs_.free(cb);
85793c
 		return optional<wait_result>(make_pair(false, context));
85793c
 	}
85793c
-
85793c
-	// shouldn't get here
85793c
-	return optional<wait_result>(make_pair(false, 0));
85793c
 }
85793c
 
85793c
 struct timespec
85793c
diff --git a/caching/hint_array.cc b/caching/hint_array.cc
85793c
index 6514968..e133c5c 100644
85793c
--- a/caching/hint_array.cc
85793c
+++ b/caching/hint_array.cc
85793c
@@ -56,9 +56,6 @@ namespace {
85793c
 		default:
85793c
 			throw runtime_error("invalid hint width");
85793c
 		}
85793c
-
85793c
-		// never get here
85793c
-		return std::shared_ptr<array_base>();
85793c
 	}
85793c
 
85793c
 	//--------------------------------
85793c
@@ -93,9 +90,6 @@ namespace {
85793c
 		default:
85793c
 			throw runtime_error("invalid hint width");
85793c
 		}
85793c
-
85793c
-		// never get here
85793c
-		return std::shared_ptr<array_base>();
85793c
 	}
85793c
 
85793c
 	//--------------------------------
85793c
-- 
85793c
1.8.3.1
85793c