From 1c34f81d31bf53157babebaba0dbbb91342e58d7 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Thu, 3 Mar 2011 16:20:34 +0200 Subject: [PATCH] Eliminate useless 'I dont care about the return code' variables in tagnames --- lib/tagname.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/tagname.c b/lib/tagname.c index adc7178..0c26968 100644 --- a/lib/tagname.c +++ b/lib/tagname.c @@ -121,10 +121,9 @@ static const char * _tagName(rpmTagVal tag) const char *name = "(unknown)"; const struct headerTagTableEntry_s *t; int comparison, i, l, u; - int xx; if (_rpmTags.byValue == NULL) - xx = tagLoadIndex(&_rpmTags.byValue, &_rpmTags.byValueSize, tagCmpValue); + tagLoadIndex(&_rpmTags.byValue, &_rpmTags.byValueSize, tagCmpValue); switch (tag) { case RPMDBI_PACKAGES: @@ -173,10 +172,9 @@ static rpmTagType _tagType(rpmTagVal tag) { const struct headerTagTableEntry_s *t; int comparison, i, l, u; - int xx; if (_rpmTags.byValue == NULL) - xx = tagLoadIndex(&_rpmTags.byValue, &_rpmTags.byValueSize, tagCmpValue); + tagLoadIndex(&_rpmTags.byValue, &_rpmTags.byValueSize, tagCmpValue); if (_rpmTags.byValue) { l = 0; u = _rpmTags.byValueSize; @@ -208,13 +206,12 @@ static rpmTagVal _tagValue(const char * tagstr) { const struct headerTagTableEntry_s *t; int comparison, i, l, u; - int xx; if (!rstrcasecmp(tagstr, "Packages")) return RPMDBI_PACKAGES; if (_rpmTags.byName == NULL) - xx = tagLoadIndex(&_rpmTags.byName, &_rpmTags.byNameSize, tagCmpName); + tagLoadIndex(&_rpmTags.byName, &_rpmTags.byNameSize, tagCmpName); if (_rpmTags.byName == NULL) return RPMTAG_NOT_FOUND; -- 2.7.4