asus_acpi: don't printk on writing garbage to proc files
PATCH 6/12 asus_acpi: don't printk on writing garbage to proc files
From: Alexey Dobriyan <[email protected]>
* This reporting is useless (you get errno anyway).
* This reporting is already inconsistent in driver.
* Looks like created files in proc are rw-rw-rw- by default.
---
drivers/acpi/asus_acpi.c | 10 +--------- 1 files changed, 1 insertion(+), 9 deletions(-)
drivers/acpi/asus_acpi.c renamed from drivers/acpi/asus_acpi.c~asus_acpi-dont-printk-on-writing-garbage-to-proc-files +1 -9
@@ -629,9 +629,7 @@ proc_write_ledd(struct file *file, const "Asus ACPI: LED display write failed\n"); else hotk->ledd_status = (u32) value; - }else if (rv <0 ) -printk (KERN_WARNING "Asus ACPI: Error reading user input\n" ); - + }return rv; }
@@ -849,10 +847,7 @@ proc_write_brn(struct file *file, const value = (0 < value) ? ((15 < value) ?15 : value) :0 ;/* 0 <= value <= 15 */ set_brightness (value); - }else if (rv <0 ) { -printk (KERN_WARNING "Asus ACPI: Error reading user input\n" ); } -return rv; }
@@ -897,9 +892,6 @@ proc_write_disp(struct file *file, const rv =parse_arg (buffer, count, &value);if (rv >0 )set_display (value); -else if (rv <0 ) -printk (KERN_WARNING "Asus ACPI: Error reading user input\n" ); -return rv; }
_
Len Brown
AppliedApplied.
thanks,
-Len
Quoted 54 lines · On Tuesday 10 October 2006 17:20, [email protected] wrote:
From: Alexey Dobriyan <[email protected]>
* This reporting is useless (you get errno anyway).
* This reporting is already inconsistent in driver.
* Looks like created files in proc are rw-rw-rw- by default.Signed-off-by Alexey Dobriyan <[email protected]>Signed-off-by Andrew Morton <[email protected]>---
drivers/acpi/asus_acpi.c | 10 +--------- 1 files changed, 1 insertion(+), 9 deletions(-)diff -puN
drivers/acpi/asus_acpi.c~asus_acpi-dont-printk-on-writing-garbage-to-proc-filesdrivers/acpi/asus_acpi.cdrivers/acpi/asus_acpi.c renamed from drivers/acpi/asus_acpi.c~asus_acpi-dont-printk-on-writing-garbage-to-proc-files +1
-9@@ -629,9 +629,7 @@ proc_write_ledd(struct file *file, const "Asus ACPI: LED display write failed\n"); else hotk->ledd_status = (u32) value; - }else if (rv <0 ) -printk (KERN_WARNING "Asus ACPI: Error reading user input\n" ); - + }return rv; }@@ -849,10 +847,7 @@ proc_write_brn(struct file *file, const value = (0 < value) ? ((15 < value) ?15 : value) :0 ;/* 0 <= value <= 15 */ set_brightness (value); - }else if (rv <0 ) { -printk (KERN_WARNING "Asus ACPI: Error reading user input\n" ); } -return rv; }@@ -897,9 +892,6 @@ proc_write_disp(struct file *file, const rv =parse_arg (buffer, count, &value);if (rv >0 )set_display (value); -else if (rv <0 ) -printk (KERN_WARNING "Asus ACPI: Error reading user input\n" ); -return rv; }_
-
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