From a919e1d631f50b29c5d917d9bfb65f7413a59782 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 17 Nov 2008 14:21:38 +0200 Subject: [PATCH] Unnecessary local variable, result only needed once --- lib/psm.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/psm.c b/lib/psm.c index 783827846..3e76de84b 100644 --- a/lib/psm.c +++ b/lib/psm.c @@ -232,7 +232,6 @@ rpmRC rpmInstallSourcePackage(rpmts ts, FD_t fd, char * specFile = NULL; Header h = NULL; rpmpsm psm = NULL; - int isSource; rpmRC rpmrc; int i; @@ -251,9 +250,7 @@ rpmRC rpmInstallSourcePackage(rpmts ts, FD_t fd, rpmrc = RPMRC_FAIL; /* assume failure */ - isSource = headerIsSource(h); - - if (!isSource) { + if (!headerIsSource(h)) { rpmlog(RPMLOG_ERR, _("source package expected, binary found\n")); goto exit; }