diff --git a/dom/crypto/WebCryptoThreadPool.cpp b/dom/crypto/WebCryptoThreadPool.cpp index 81e1903d67bc..8044ed3b36fe 100644 --- a/dom/crypto/WebCryptoThreadPool.cpp +++ b/dom/crypto/WebCryptoThreadPool.cpp @@ -74,7 +74,6 @@ WebCryptoThreadPool::DispatchInternal(nsIRunnable* aRunnable) NS_ENSURE_TRUE(EnsureNSSInitializedChromeOrContent(), NS_ERROR_FAILURE); nsCOMPtr pool(new nsThreadPool()); - NS_ENSURE_TRUE(pool, NS_ERROR_FAILURE); nsresult rv = pool->SetName(NS_LITERAL_CSTRING("SubtleCrypto")); NS_ENSURE_SUCCESS(rv, rv); diff --git a/netwerk/base/nsStreamTransportService.cpp b/netwerk/base/nsStreamTransportService.cpp index f2c1a242a61c..a9987a0af85c 100644 --- a/netwerk/base/nsStreamTransportService.cpp +++ b/netwerk/base/nsStreamTransportService.cpp @@ -205,7 +205,6 @@ nsresult nsStreamTransportService::Init() { mPool = new nsThreadPool(); - NS_ENSURE_STATE(mPool); // Configure the pool mPool->SetName(NS_LITERAL_CSTRING("StreamTrans")); diff --git a/xpcom/tests/gtest/TestEventTargetQI.cpp b/xpcom/tests/gtest/TestEventTargetQI.cpp index a961fe6a2b6f..67e9a75a24b6 100644 --- a/xpcom/tests/gtest/TestEventTargetQI.cpp +++ b/xpcom/tests/gtest/TestEventTargetQI.cpp @@ -21,7 +21,6 @@ using namespace mozilla; TEST(TestEventTargetQI, ThreadPool) { nsCOMPtr thing = new nsThreadPool(); - EXPECT_TRUE(thing); nsCOMPtr serial = do_QueryInterface(thing); EXPECT_FALSE(serial); diff --git a/xpcom/tests/gtest/TestThreadPool.cpp b/xpcom/tests/gtest/TestThreadPool.cpp index 67d33344c9e6..72f8744a01f6 100644 --- a/xpcom/tests/gtest/TestThreadPool.cpp +++ b/xpcom/tests/gtest/TestThreadPool.cpp @@ -50,7 +50,6 @@ mozilla::Atomic Task::sCount; TEST(ThreadPool, Main) { nsCOMPtr pool = new nsThreadPool(); - EXPECT_TRUE(pool); for (int i = 0; i < 100; ++i) { nsCOMPtr task = new Task(i); @@ -66,7 +65,6 @@ TEST(ThreadPool, Main) TEST(ThreadPool, Parallelism) { nsCOMPtr pool = new nsThreadPool(); - EXPECT_TRUE(pool); // Dispatch and sleep to ensure we have an idle thread nsCOMPtr r0 = new Runnable("TestRunnable");