This simplifies rtas_initialize(), no functional changes introduced: * PATCH[1/3] removes the unnecessary nested if statements. * PATCH[2/3] uses of_property_read_u32() instead of converting the property's data to target in CPU endian. * PATCH[3/3] decreases RTAS device-tree node's refcount in error path.
Gavin Shan (3): powerpc/kernel: Remove nested if statements in rtas_initialize() powerpc/kernel: Use of_property_read_u32() in rtas_initialize() powerpc/kernel: Fix unbalanced refcount on RTAS device node arch/powerpc/kernel/rtas.c | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) -- 2.7.4