]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
pool.c: Remove identical if condition 590/head
authorChristoph Grüninger <foss@grueninger.de>
Wed, 14 May 2025 19:31:56 +0000 (21:31 +0200)
committerChristoph Grüninger <foss@grueninger.de>
Wed, 14 May 2025 19:31:56 +0000 (21:31 +0200)
It is always true.
Found by Cppcheck (identicalInnerCondition).

src/pool.c

index 14511deffcd6b6b4ef758452e4c6aae222811ae9..0f989b167f72cc2fdc24188f1084950314c604b4 100644 (file)
@@ -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++)
        {