From patchwork Wed Apr 20 23:20:24 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karthigan Srinivasan X-Patchwork-Id: 723491 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3KNKRw9014457 for ; Wed, 20 Apr 2011 23:20:27 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752762Ab1DTXU0 (ORCPT ); Wed, 20 Apr 2011 19:20:26 -0400 Received: from g4t0015.houston.hp.com ([15.201.24.18]:7429 "EHLO g4t0015.houston.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752292Ab1DTXUZ (ORCPT ); Wed, 20 Apr 2011 19:20:25 -0400 Received: from g4t0018.houston.hp.com (g4t0018.houston.hp.com [16.234.32.27]) by g4t0015.houston.hp.com (Postfix) with ESMTP id 3E240914B; Wed, 20 Apr 2011 23:20:25 +0000 (UTC) Received: from [16.83.41.28] (ks-ubuntu.americas.hpqcorp.net [16.83.41.28]) by g4t0018.houston.hp.com (Postfix) with ESMTP id 1A55B10973; Wed, 20 Apr 2011 23:20:25 +0000 (UTC) Subject: [PATCH] drivers/acpi/utils.c: Fixed coding style issues From: Karthigan Srinivasan To: Len Brown , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Karthigan Srinivasan Date: Wed, 20 Apr 2011 18:20:24 -0500 Message-ID: <1303341624.11397.2.camel@ks-ubuntu> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 20 Apr 2011 23:20:27 +0000 (UTC) From e770496964bf749c30df8a19abbdfe0f79d64fb7 Mon Sep 17 00:00:00 2001 From: Karthigan Srinivasan Date: Wed, 20 Apr 2011 18:14:10 -0500 Subject: [PATCH] drivers/acpi/utils.c: Fixed coding style issues. Fixed brace and comment coding style issues in code. Signed-off-by: Karthigan Srinivasan --- drivers/acpi/utils.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/acpi/utils.c b/drivers/acpi/utils.c index b002a47..2cf81a1 100644 --- a/drivers/acpi/utils.c +++ b/drivers/acpi/utils.c @@ -99,9 +99,9 @@ acpi_extract_package(union acpi_object *package, union acpi_object *element = &(package->package.elements[i]); - if (!element) { + if (!element) return AE_BAD_DATA; - } + switch (element->type) { @@ -185,9 +185,9 @@ acpi_extract_package(union acpi_object *package, u8 **pointer = NULL; union acpi_object *element = &(package->package.elements[i]); - if (!element) { + if (!element) return AE_BAD_DATA; - } + switch (element->type) { @@ -303,9 +303,9 @@ acpi_evaluate_reference(acpi_handle handle, u32 i = 0; - if (!list) { + if (!list) return AE_BAD_PARAMETER; - } + /* Evaluate object. */ @@ -337,9 +337,9 @@ acpi_evaluate_reference(acpi_handle handle, goto end; } - if (package->package.count > ACPI_MAX_HANDLES) { + if (package->package.count > ACPI_MAX_HANDLES) return AE_NO_MEMORY; - } + list->count = package->package.count; /* Extract package data. */ @@ -373,7 +373,7 @@ acpi_evaluate_reference(acpi_handle handle, end: if (ACPI_FAILURE(status)) { list->count = 0; - //kfree(list->handles); + /* kfree(list->handles);*/ } kfree(buffer.pointer);