From a486bcc79329dd48db0c0c50391a940abbb9e75f Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Thu, 18 Sep 2008 11:39:42 +0300 Subject: [PATCH] Remove pointless non-NULL check - rpmfiNew() cannot return NULL, and even if it did, we'd be out of here by the way of rpmfiFC(fi) returning zero before this... --- lib/query.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/query.c b/lib/query.c index 0bd1da1..1a317ae 100644 --- a/lib/query.c +++ b/lib/query.c @@ -129,7 +129,6 @@ int showQueryPackage(QVA_t qva, rpmts ts, Header h) } fi = rpmfiInit(fi, 0); - if (fi != NULL) while ((i = rpmfiNext(fi)) >= 0) { rpmfileAttrs fflags = rpmfiFFlags(fi); rpm_mode_t fmode = rpmfiFMode(fi); -- 2.7.4