From 235c24a5f631e992a8552b11ea70e3ad49a7bd9a Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 4 Oct 2011 14:59:49 +0300 Subject: [PATCH] Eliminate redundant local variable in headerLoad() --- lib/header.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/header.c b/lib/header.c index b01d1e4..ba63de4 100644 --- a/lib/header.c +++ b/lib/header.c @@ -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; -- 2.7.4