]> git.baikalelectronics.ru Git - kernel.git/commit
of/fdt: Remove duplicate memory clearing on FDT unflattening
authorGrant Likely <grant.likely@linaro.org>
Wed, 28 Aug 2013 20:24:17 +0000 (21:24 +0100)
committerGrant Likely <grant.likely@linaro.org>
Thu, 29 Aug 2013 20:40:31 +0000 (21:40 +0100)
commit773ab4be472ef5cc14da8bb8afafc79a151c97f0
treed1f063862d84419b46795073e74357488b449011
parent6791d3b019793fbd796ddbcf53d131bbd19a54b0
of/fdt: Remove duplicate memory clearing on FDT unflattening

Patch a5eb02ed2, "of: fdt: fix memory initialization for expanded DT"
fixed incomplete clearing of memory when unflattening the device tree.
However the code was already clearing some of the memory, it just wasn't
doing so for all allocations. Now that the memory is cleared right at
the point of allocation, the memset after unflatten_dt_alloc() is
redundant. Remove it.

Signed-off-by: Grant Likely <grant.likely@linaro.org>
Acked-by: Wladislav Wiebe <wladislav.kw@gmail.com>
drivers/of/fdt.c