Remove unused xx error code variable
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 4 Mar 2011 10:45:06 +0000 (12:45 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 4 Mar 2011 10:45:06 +0000 (12:45 +0200)
- headerDel() only fails if the tag doesn't exist in the header, which
  is not an error here. Nor could we return an error if it was...

lib/legacy.c

index df7911e..422c2b0 100644 (file)
@@ -26,7 +26,7 @@ static void compressFilelist(Header h)
     const char ** baseNames;
     uint32_t * dirIndexes;
     rpm_count_t count;
-    int xx, i;
+    int i;
     int dirIndex = -1;
 
     /*
@@ -36,7 +36,7 @@ static void compressFilelist(Header h)
      */
 
     if (headerIsEntry(h, RPMTAG_DIRNAMES)) {
-       xx = headerDel(h, RPMTAG_OLDFILENAMES);
+       headerDel(h, RPMTAG_OLDFILENAMES);
        return;         /* Already converted. */
     }
 
@@ -112,7 +112,7 @@ exit:
     free(baseNames);
     free(dirIndexes);
 
-    xx = headerDel(h, RPMTAG_OLDFILENAMES);
+    headerDel(h, RPMTAG_OLDFILENAMES);
 }
 
 static void expandFilelist(Header h)