From 8642432b74eca28d4abe11ea93911f603328f16e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christoph=20Gr=C3=BCninger?= Date: Wed, 14 May 2025 21:31:56 +0200 Subject: [PATCH] pool.c: Remove identical if condition It is always true. Found by Cppcheck (identicalInnerCondition). --- src/pool.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pool.c b/src/pool.c index 14511def..0f989b16 100644 --- a/src/pool.c +++ b/src/pool.c @@ -594,8 +594,7 @@ pool_createwhatprovides(Pool *pool) } else if (!pool->addedfileprovides && pool->disttype == DISTTYPE_RPM) { - if (!pool->addedfileprovides) - POOL_DEBUG(SOLV_DEBUG_STATS, "WARNING: pool_addfileprovides was not called, this may result in slow operation\n"); + POOL_DEBUG(SOLV_DEBUG_STATS, "WARNING: pool_addfileprovides was not called, this may result in slow operation\n"); /* lazyly add file provides */ for (i = 1; i < num; i++) { -- 2.47.2