diff options
Diffstat (limited to 'scripts/dtc/libfdt/fdt_rw.c')
| -rw-r--r-- | scripts/dtc/libfdt/fdt_rw.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/dtc/libfdt/fdt_rw.c b/scripts/dtc/libfdt/fdt_rw.c index 24437dfc32b8..70adec6c371b 100644 --- a/scripts/dtc/libfdt/fdt_rw.c +++ b/scripts/dtc/libfdt/fdt_rw.c | |||
| @@ -84,9 +84,9 @@ static int _fdt_rw_check_header(void *fdt) | |||
| 84 | 84 | ||
| 85 | #define FDT_RW_CHECK_HEADER(fdt) \ | 85 | #define FDT_RW_CHECK_HEADER(fdt) \ |
| 86 | { \ | 86 | { \ |
| 87 | int err; \ | 87 | int __err; \ |
| 88 | if ((err = _fdt_rw_check_header(fdt)) != 0) \ | 88 | if ((__err = _fdt_rw_check_header(fdt)) != 0) \ |
| 89 | return err; \ | 89 | return __err; \ |
| 90 | } | 90 | } |
| 91 | 91 | ||
| 92 | static inline int _fdt_data_size(void *fdt) | 92 | static inline int _fdt_data_size(void *fdt) |
| @@ -339,7 +339,7 @@ int fdt_add_subnode_namelen(void *fdt, int parentoffset, | |||
| 339 | int nodelen; | 339 | int nodelen; |
| 340 | int err; | 340 | int err; |
| 341 | uint32_t tag; | 341 | uint32_t tag; |
| 342 | uint32_t *endtag; | 342 | fdt32_t *endtag; |
| 343 | 343 | ||
| 344 | FDT_RW_CHECK_HEADER(fdt); | 344 | FDT_RW_CHECK_HEADER(fdt); |
| 345 | 345 | ||
| @@ -366,7 +366,7 @@ int fdt_add_subnode_namelen(void *fdt, int parentoffset, | |||
| 366 | nh->tag = cpu_to_fdt32(FDT_BEGIN_NODE); | 366 | nh->tag = cpu_to_fdt32(FDT_BEGIN_NODE); |
| 367 | memset(nh->name, 0, FDT_TAGALIGN(namelen+1)); | 367 | memset(nh->name, 0, FDT_TAGALIGN(namelen+1)); |
| 368 | memcpy(nh->name, name, namelen); | 368 | memcpy(nh->name, name, namelen); |
| 369 | endtag = (uint32_t *)((char *)nh + nodelen - FDT_TAGSIZE); | 369 | endtag = (fdt32_t *)((char *)nh + nodelen - FDT_TAGSIZE); |
| 370 | *endtag = cpu_to_fdt32(FDT_END_NODE); | 370 | *endtag = cpu_to_fdt32(FDT_END_NODE); |
| 371 | 371 | ||
| 372 | return offset; | 372 | return offset; |
