From 9db2544707944d3a69c0f472bcf00be45edc33ee Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Fri, 4 Mar 2011 13:38:34 +0200 Subject: Remove unused return code variable - None of the error exits from rpmdbSetIteratorRE() apply to the use in rpmtsInitIterator() so there's no point storing or checking its return --- lib/rpmts.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/rpmts.c b/lib/rpmts.c index d782ecfe7..6982303cb 100644 --- a/lib/rpmts.c +++ b/lib/rpmts.c @@ -161,7 +161,6 @@ rpmdbMatchIterator rpmtsInitIterator(const rpmts ts, rpmDbiTagVal rpmtag, rpmdbMatchIterator mi = NULL; const char * arch = NULL; char *tmp = NULL; - int xx; if (ts == NULL) return NULL; @@ -237,7 +236,7 @@ rpmdbMatchIterator rpmtsInitIterator(const rpmts ts, rpmDbiTagVal rpmtag, /* Select specified arch only. */ if (arch != NULL) - xx = rpmdbSetIteratorRE(mi, RPMTAG_ARCH, RPMMIRE_DEFAULT, arch); + rpmdbSetIteratorRE(mi, RPMTAG_ARCH, RPMMIRE_DEFAULT, arch); exit: free(tmp); -- cgit v1.2.3