Signed-off-by: Patrick Mochel <[EMAIL PROTECTED]>

---

 drivers/acpi/debug.c |   16 ++++++----------
 1 files changed, 6 insertions(+), 10 deletions(-)

applies-to: ce1874742f9967d719f89401e5c88209764ef1cd
fc3c173fd00ce05df840fad89b2344436058e4a3
diff --git a/drivers/acpi/debug.c b/drivers/acpi/debug.c
index ec7bcee..2cd66c8 100644
--- a/drivers/acpi/debug.c
+++ b/drivers/acpi/debug.c
@@ -155,13 +155,11 @@ acpi_system_write_debug(struct file *fil
 {
        char debug_string[12] = { '\0' };
 
-       ACPI_FUNCTION_TRACE("acpi_system_write_debug");
-
        if (count > sizeof(debug_string) - 1)
-               return_VALUE(-EINVAL);
+               return -EINVAL;
 
        if (copy_from_user(debug_string, buffer, count))
-               return_VALUE(-EFAULT);
+               return -EFAULT;
 
        debug_string[count] = '\0';
 
@@ -173,10 +171,10 @@ acpi_system_write_debug(struct file *fil
                acpi_dbg_level = simple_strtoul(debug_string, NULL, 0);
                break;
        default:
-               return_VALUE(-EINVAL);
+               return -EINVAL;
        }
 
-       return_VALUE(count);
+       return count;
 }
 
 static int __init acpi_debug_init(void)
@@ -185,10 +183,8 @@ static int __init acpi_debug_init(void)
        int error = 0;
        char *name;
 
-       ACPI_FUNCTION_TRACE("acpi_debug_init");
-
        if (acpi_disabled)
-               return_VALUE(0);
+               return 0;
 
        /* 'debug_layer' [R/W] */
        name = ACPI_SYSTEM_FILE_DEBUG_LAYER;
@@ -213,7 +209,7 @@ static int __init acpi_debug_init(void)
                goto Error;
 
       Done:
-       return_VALUE(error);
+       return error;
 
       Error:
        remove_proc_entry(ACPI_SYSTEM_FILE_DEBUG_LEVEL, acpi_root_dir);
---
0.99.9.GIT


-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to