Eliminate pointless xx unused error code variable in rpmShowRC()
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 4 Mar 2011 11:11:22 +0000 (13:11 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 4 Mar 2011 11:11:22 +0000 (13:11 +0200)
- An error here from rpmdsRpmlib() would be very much a "can't happen"
  situtation, and there's no point handling it in any special way,
  the loop will silently fall through anyway.

lib/rpmrc.c

index 1b47dc3..7882af2 100644 (file)
@@ -1646,7 +1646,7 @@ int rpmShowRC(FILE * fp)
 {
     const struct rpmOption *opt;
     rpmds ds = NULL;
-    int i, xx;
+    int i;
     machEquivTable equivTable;
 
     /* the caller may set the build arch which should be printed here */
@@ -1694,7 +1694,7 @@ int rpmShowRC(FILE * fp)
     fprintf(fp, "\n");
 
     fprintf(fp, "Features supported by rpmlib:\n");
-    xx = rpmdsRpmlib(&ds, NULL);
+    rpmdsRpmlib(&ds, NULL);
     ds = rpmdsInit(ds);
     while (rpmdsNext(ds) >= 0) {
         const char * DNEVR = rpmdsDNEVR(ds);