From 8f10f2362ec5820037591d01349e502868f89eb3 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Fri, 28 Aug 2009 15:43:07 +0300 Subject: [PATCH] Eliminate unused result code from psm struct --- lib/psm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/psm.c b/lib/psm.c index a5bfc4e..0b88a62 100644 --- a/lib/psm.c +++ b/lib/psm.c @@ -53,7 +53,6 @@ struct rpmpsm_s { rpmCallbackType what; /*!< Callback type. */ rpm_loff_t amount; /*!< Callback amount. */ rpm_loff_t total; /*!< Callback total. */ - rpmRC rc; pkgStage goal; pkgStage stage; /*!< Current psm stage. */ pkgStage nstage; /*!< Next psm stage. */ @@ -1187,7 +1186,7 @@ rpmRC rpmpsmStage(rpmpsm psm, pkgStage stage) const rpmts ts = psm->ts; rpm_color_t tscolor = rpmtsColor(ts); rpmfi fi = psm->fi; - rpmRC rc = psm->rc; + rpmRC rc = RPMRC_OK; int saveerrno; int xx; @@ -1549,7 +1548,6 @@ rpmRC rpmpsmStage(rpmpsm psm, pkgStage stage) case PSM_PKGINSTALL: case PSM_PKGERASE: psm->goal = stage; - psm->rc = RPMRC_OK; psm->stepName = pkgStageString(stage); rc = rpmpsmNext(psm, PSM_INIT); -- 2.7.4