]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - scripts/dtc/flattree.c
scripts: dtc: fix compile warnings
[karo-tx-linux.git] / scripts / dtc / flattree.c
index ead0332c87e1b1e613507c79bbcda2aa87998309..28d0b2381df6e526a09043da4b79247ce1998c41 100644 (file)
@@ -697,7 +697,6 @@ static struct reserve_info *flat_read_mem_reserve(struct inbuf *inb)
 {
        struct reserve_info *reservelist = NULL;
        struct reserve_info *new;
-       const char *p;
        struct fdt_reserve_entry re;
 
        /*
@@ -706,7 +705,6 @@ static struct reserve_info *flat_read_mem_reserve(struct inbuf *inb)
         *
         * First pass, count entries.
         */
-       p = inb->ptr;
        while (1) {
                flat_read_chunk(inb, &re, sizeof(re));
                re.address  = fdt64_to_cpu(re.address);