of: fdt: reorder fdt_header initialization
No functional change, just reorder the initialization of the different offset/size members of fdt_header in increasing order to make it easier to read. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
c9a86c5c02
commit
7c1091bd58
|
@ -408,11 +408,11 @@ void *of_flatten_dtb(struct device_node *node)
|
|||
nh->tag = cpu_to_fdt32(FDT_END);
|
||||
fdt.dt_nextofs = dt_next_ofs(fdt.dt_nextofs, sizeof(struct fdt_node_header));
|
||||
|
||||
header.size_dt_strings = cpu_to_fdt32(fdt.str_nextofs);
|
||||
header.off_dt_struct = cpu_to_fdt32(ofs);
|
||||
header.size_dt_struct = cpu_to_fdt32(fdt.dt_nextofs - ofs);
|
||||
|
||||
header.off_dt_struct = cpu_to_fdt32(ofs);
|
||||
header.off_dt_strings = cpu_to_fdt32(fdt.dt_nextofs);
|
||||
header.size_dt_strings = cpu_to_fdt32(fdt.str_nextofs);
|
||||
|
||||
if (fdt.dt_size - fdt.dt_nextofs < fdt.str_nextofs) {
|
||||
fdt.dt = memalign_realloc(fdt.dt, fdt.dt_size,
|
||||
|
|
Loading…
Reference in New Issue