From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3v69ZN1PjvzDqZl for ; Mon, 23 Jan 2017 10:26:52 +1100 (AEDT) Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v0MNIgJF014139 for ; Sun, 22 Jan 2017 18:26:50 -0500 Received: from e23smtp04.au.ibm.com (e23smtp04.au.ibm.com [202.81.31.146]) by mx0a-001b2d01.pphosted.com with ESMTP id 284v4cr9d1-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Sun, 22 Jan 2017 18:26:49 -0500 Received: from localhost by e23smtp04.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 23 Jan 2017 09:26:47 +1000 Received: from d23relay07.au.ibm.com (d23relay07.au.ibm.com [9.190.26.37]) by d23dlp02.au.ibm.com (Postfix) with ESMTP id 9504D2BB0045 for ; Mon, 23 Jan 2017 10:26:44 +1100 (EST) Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay07.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v0MNQaiD19792026 for ; Mon, 23 Jan 2017 10:26:44 +1100 Received: from d23av04.au.ibm.com (localhost [127.0.0.1]) by d23av04.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id v0MNQCto002112 for ; Mon, 23 Jan 2017 10:26:12 +1100 From: Gavin Shan To: linuxppc-dev@lists.ozlabs.org Cc: mpe@ellerman.id.au, Gavin Shan Subject: [PATCH 0/3] powerpc/kernel: Simplify rtas_initialize() Date: Mon, 23 Jan 2017 10:25:43 +1100 Message-Id: <1485127546-18859-1-git-send-email-gwshan@linux.vnet.ibm.com> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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