diff options
author | Felipe Balbi <balbi@ti.com> | 2012-01-26 06:20:07 -0500 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2012-03-24 18:07:35 -0400 |
commit | db7f4e3d2b0a68eafc16a7b78ac0b7566db1e799 (patch) | |
tree | 137284973df0b6caf024da064df6699fa0eed04f /scripts/dtc | |
parent | fb68d4be95fef4aab82c2a97da93a898d532dd57 (diff) |
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>
Diffstat (limited to 'scripts/dtc')
-rw-r--r-- | scripts/dtc/dtc.c | 5 | ||||
-rw-r--r-- | scripts/dtc/flattree.c | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/scripts/dtc/dtc.c b/scripts/dtc/dtc.c index 451c92d31b19..2ef5e2e3dd38 100644 --- a/scripts/dtc/dtc.c +++ b/scripts/dtc/dtc.c | |||
@@ -101,7 +101,7 @@ int main(int argc, char *argv[]) | |||
101 | const char *outform = "dts"; | 101 | const char *outform = "dts"; |
102 | const char *outname = "-"; | 102 | const char *outname = "-"; |
103 | const char *depname = NULL; | 103 | const char *depname = NULL; |
104 | int force = 0, check = 0, sort = 0; | 104 | int force = 0, sort = 0; |
105 | const char *arg; | 105 | const char *arg; |
106 | int opt; | 106 | int opt; |
107 | FILE *outf = NULL; | 107 | FILE *outf = NULL; |
@@ -143,9 +143,6 @@ int main(int argc, char *argv[]) | |||
143 | case 'f': | 143 | case 'f': |
144 | force = 1; | 144 | force = 1; |
145 | break; | 145 | break; |
146 | case 'c': | ||
147 | check = 1; | ||
148 | break; | ||
149 | case 'q': | 146 | case 'q': |
150 | quiet++; | 147 | quiet++; |
151 | break; | 148 | break; |
diff --git a/scripts/dtc/flattree.c b/scripts/dtc/flattree.c index ead0332c87e1..28d0b2381df6 100644 --- a/scripts/dtc/flattree.c +++ b/scripts/dtc/flattree.c | |||
@@ -697,7 +697,6 @@ static struct reserve_info *flat_read_mem_reserve(struct inbuf *inb) | |||
697 | { | 697 | { |
698 | struct reserve_info *reservelist = NULL; | 698 | struct reserve_info *reservelist = NULL; |
699 | struct reserve_info *new; | 699 | struct reserve_info *new; |
700 | const char *p; | ||
701 | struct fdt_reserve_entry re; | 700 | struct fdt_reserve_entry re; |
702 | 701 | ||
703 | /* | 702 | /* |
@@ -706,7 +705,6 @@ static struct reserve_info *flat_read_mem_reserve(struct inbuf *inb) | |||
706 | * | 705 | * |
707 | * First pass, count entries. | 706 | * First pass, count entries. |
708 | */ | 707 | */ |
709 | p = inb->ptr; | ||
710 | while (1) { | 708 | while (1) { |
711 | flat_read_chunk(inb, &re, sizeof(re)); | 709 | flat_read_chunk(inb, &re, sizeof(re)); |
712 | re.address = fdt64_to_cpu(re.address); | 710 | re.address = fdt64_to_cpu(re.address); |