From: Panu Matilainen Date: Thu, 18 Sep 2008 08:39:42 +0000 (+0300) Subject: Remove pointless non-NULL check X-Git-Tag: tznext/4.11.0.1.tizen20130304~3627 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a486bcc79329dd48db0c0c50391a940abbb9e75f;p=tools%2Flibrpm-tizen.git 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... --- 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);