]> 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)
commit7778c7c5fc5b29725c613dd1b35299f68b14789a
treed1f063862d84419b46795073e74357488b449011
parente7cddff847b8e3a745b6a808cbe821dcc513cd8d
of/fdt: Remove duplicate memory clearing on FDT unflattening

Patch 62a7d584b, "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