From 04d07f836bf564a8138ee12385722e03da606e50 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Thu, 25 Feb 2010 21:35:56 +0200 Subject: [PATCH] Lose another pointless NULL-check on rpmfi iteration + an unused variable --- lib/transaction.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/transaction.c b/lib/transaction.c index 7832f19..98fa10b 100644 --- a/lib/transaction.c +++ b/lib/transaction.c @@ -319,7 +319,6 @@ static uint64_t countFiles(rpmts ts) uint64_t fc = 0; rpmtsi pi = rpmtsiInit(ts); rpmte p; - rpmfi fi; while ((p = rpmtsiNext(pi, 0)) != NULL) fc += rpmfiFC(rpmteFI(p)); pi = rpmtsiFree(pi); @@ -415,7 +414,6 @@ static void handleOverlappedFiles(rpmts ts, rpmFpHash ht, rpmte p, rpmfi fi) ps = rpmtsProblems(ts); fi = rpmfiInit(fi, 0); - if (fi != NULL) while ((i = rpmfiNext(fi)) >= 0) { rpm_color_t oFColor, FColor; struct fingerPrint_s * fiFps; -- 2.7.4