Eliminate redundant local variable in headerLoad()
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 4 Oct 2011 11:59:49 +0000 (14:59 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 4 Oct 2011 11:59:49 +0000 (14:59 +0300)
lib/header.c

index b01d1e4..ba63de4 100644 (file)
@@ -786,7 +786,6 @@ Header headerLoad(void * uh)
     int32_t dl = ntohl(ei[1]);         /* data length */
     size_t pvlen = sizeof(il) + sizeof(dl) +
                (il * sizeof(struct entryInfo_s)) + dl;
-    void * pv = uh;
     Header h = NULL;
     entryInfo pe;
     unsigned char * dataStart;
@@ -798,7 +797,6 @@ Header headerLoad(void * uh)
     if (hdrchkTags(il) || hdrchkData(dl))
        goto errxit;
 
-    ei = (int32_t *) pv;
     pe = (entryInfo) &ei[2];
     dataStart = (unsigned char *) (pe + il);
     dataEnd = dataStart + dl;