Merge tag 'v6.9-p1' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
[linux-2.6-microblaze.git] / crypto / asymmetric_keys / verify_pefile.c
index f440767..2863984 100644 (file)
@@ -28,7 +28,7 @@ static int pefile_parse_binary(const void *pebuf, unsigned int pelen,
        const struct pe32plus_opt_hdr *pe64;
        const struct data_directory *ddir;
        const struct data_dirent *dde;
-       const struct section_header *secs, *sec;
+       const struct section_header *sec;
        size_t cursor, datalen = pelen;
 
        kenter("");
@@ -110,7 +110,7 @@ static int pefile_parse_binary(const void *pebuf, unsigned int pelen,
        ctx->n_sections = pe->sections;
        if (ctx->n_sections > (ctx->header_size - cursor) / sizeof(*sec))
                return -ELIBBAD;
-       ctx->secs = secs = pebuf + cursor;
+       ctx->secs = pebuf + cursor;
 
        return 0;
 }