1
0
Fork 0
mirror of https://github.com/followmsi/android_kernel_google_msm.git synced 2024-11-06 23:17:41 +00:00

scripts: dtc: fix compile warnings

Fix following compile warnings:

scripts/dtc/flattree.c: In function ‘flat_read_mem_reserve’:
scripts/dtc/flattree.c:700:14: warning: variable ‘p’ set but not used
	[-Wunused-but-set-variable]

scripts/dtc/dtc.c: In function ‘main’:
scripts/dtc/dtc.c:104:17: warning: variable ‘check’ set but not used
	[-Wunused-but-set-variable]

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
This commit is contained in:
Felipe Balbi 2012-01-26 13:20:07 +02:00 committed by Michal Marek
parent fb68d4be95
commit db7f4e3d2b
2 changed files with 1 additions and 6 deletions
scripts/dtc

View file

@ -101,7 +101,7 @@ int main(int argc, char *argv[])
const char *outform = "dts"; const char *outform = "dts";
const char *outname = "-"; const char *outname = "-";
const char *depname = NULL; const char *depname = NULL;
int force = 0, check = 0, sort = 0; int force = 0, sort = 0;
const char *arg; const char *arg;
int opt; int opt;
FILE *outf = NULL; FILE *outf = NULL;
@ -143,9 +143,6 @@ int main(int argc, char *argv[])
case 'f': case 'f':
force = 1; force = 1;
break; break;
case 'c':
check = 1;
break;
case 'q': case 'q':
quiet++; quiet++;
break; break;

View file

@ -697,7 +697,6 @@ static struct reserve_info *flat_read_mem_reserve(struct inbuf *inb)
{ {
struct reserve_info *reservelist = NULL; struct reserve_info *reservelist = NULL;
struct reserve_info *new; struct reserve_info *new;
const char *p;
struct fdt_reserve_entry re; struct fdt_reserve_entry re;
/* /*
@ -706,7 +705,6 @@ static struct reserve_info *flat_read_mem_reserve(struct inbuf *inb)
* *
* First pass, count entries. * First pass, count entries.
*/ */
p = inb->ptr;
while (1) { while (1) {
flat_read_chunk(inb, &re, sizeof(re)); flat_read_chunk(inb, &re, sizeof(re));
re.address = fdt64_to_cpu(re.address); re.address = fdt64_to_cpu(re.address);