diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2006-10-10 17:20:36 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-10-14 02:03:49 -0400 |
commit | 6df05702f97f99e038ab817f4466386f6255f58d (patch) | |
tree | c980ce9a19f763ed2bf7ba1e4bf96449937ef7a4 /drivers/acpi/asus_acpi.c | |
parent | 6311f0dac006032b82e3556874a1e18b31e80de2 (diff) |
ACPI: asus_acpi: don't printk on writing garbage to proc files
This reporting is useless (we errno anyway).
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/asus_acpi.c')
-rw-r--r-- | drivers/acpi/asus_acpi.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/acpi/asus_acpi.c b/drivers/acpi/asus_acpi.c index 33eaca108f4b..c7ac9297a204 100644 --- a/drivers/acpi/asus_acpi.c +++ b/drivers/acpi/asus_acpi.c | |||
@@ -629,9 +629,7 @@ proc_write_ledd(struct file *file, const char __user * buffer, | |||
629 | "Asus ACPI: LED display write failed\n"); | 629 | "Asus ACPI: LED display write failed\n"); |
630 | else | 630 | else |
631 | hotk->ledd_status = (u32) value; | 631 | hotk->ledd_status = (u32) value; |
632 | } else if (rv < 0) | 632 | } |
633 | printk(KERN_WARNING "Asus ACPI: Error reading user input\n"); | ||
634 | |||
635 | return rv; | 633 | return rv; |
636 | } | 634 | } |
637 | 635 | ||
@@ -849,10 +847,7 @@ proc_write_brn(struct file *file, const char __user * buffer, | |||
849 | value = (0 < value) ? ((15 < value) ? 15 : value) : 0; | 847 | value = (0 < value) ? ((15 < value) ? 15 : value) : 0; |
850 | /* 0 <= value <= 15 */ | 848 | /* 0 <= value <= 15 */ |
851 | set_brightness(value); | 849 | set_brightness(value); |
852 | } else if (rv < 0) { | ||
853 | printk(KERN_WARNING "Asus ACPI: Error reading user input\n"); | ||
854 | } | 850 | } |
855 | |||
856 | return rv; | 851 | return rv; |
857 | } | 852 | } |
858 | 853 | ||
@@ -897,9 +892,6 @@ proc_write_disp(struct file *file, const char __user * buffer, | |||
897 | rv = parse_arg(buffer, count, &value); | 892 | rv = parse_arg(buffer, count, &value); |
898 | if (rv > 0) | 893 | if (rv > 0) |
899 | set_display(value); | 894 | set_display(value); |
900 | else if (rv < 0) | ||
901 | printk(KERN_WARNING "Asus ACPI: Error reading user input\n"); | ||
902 | |||
903 | return rv; | 895 | return rv; |
904 | } | 896 | } |
905 | 897 | ||