Commit 95d9a7a8 authored by Lin Ming's avatar Lin Ming Committed by Len Brown

ACPI: proc.c: remove ACPI_FUNCTION_TRACE

ACPI_FUNCTION_TRACE and return_VALUE are internal acpica functions.
remove ACPI_FUNCTION_TRACE
replace return_VALUE with return
Signed-off-by: default avatarLin Ming <ming.m.lin@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 0175d562
...@@ -28,8 +28,6 @@ static int acpi_system_sleep_seq_show(struct seq_file *seq, void *offset) ...@@ -28,8 +28,6 @@ static int acpi_system_sleep_seq_show(struct seq_file *seq, void *offset)
{ {
int i; int i;
ACPI_FUNCTION_TRACE("acpi_system_sleep_seq_show");
for (i = 0; i <= ACPI_STATE_S5; i++) { for (i = 0; i <= ACPI_STATE_S5; i++) {
if (sleep_states[i]) { if (sleep_states[i]) {
seq_printf(seq, "S%d ", i); seq_printf(seq, "S%d ", i);
...@@ -93,8 +91,6 @@ static int acpi_system_alarm_seq_show(struct seq_file *seq, void *offset) ...@@ -93,8 +91,6 @@ static int acpi_system_alarm_seq_show(struct seq_file *seq, void *offset)
unsigned char rtc_control = 0; unsigned char rtc_control = 0;
unsigned long flags; unsigned long flags;
ACPI_FUNCTION_TRACE("acpi_system_alarm_seq_show");
spin_lock_irqsave(&rtc_lock, flags); spin_lock_irqsave(&rtc_lock, flags);
sec = CMOS_READ(RTC_SECONDS_ALARM); sec = CMOS_READ(RTC_SECONDS_ALARM);
...@@ -227,13 +223,11 @@ acpi_system_write_alarm(struct file *file, ...@@ -227,13 +223,11 @@ acpi_system_write_alarm(struct file *file,
int adjust = 0; int adjust = 0;
unsigned char rtc_control = 0; unsigned char rtc_control = 0;
ACPI_FUNCTION_TRACE("acpi_system_write_alarm");
if (count > sizeof(alarm_string) - 1) if (count > sizeof(alarm_string) - 1)
return_VALUE(-EINVAL); return -EINVAL;
if (copy_from_user(alarm_string, buffer, count)) if (copy_from_user(alarm_string, buffer, count))
return_VALUE(-EFAULT); return -EFAULT;
alarm_string[count] = '\0'; alarm_string[count] = '\0';
...@@ -334,7 +328,7 @@ acpi_system_write_alarm(struct file *file, ...@@ -334,7 +328,7 @@ acpi_system_write_alarm(struct file *file,
result = 0; result = 0;
end: end:
return_VALUE(result ? result : count); return result ? result : count;
} }
#endif /* HAVE_ACPI_LEGACY_ALARM */ #endif /* HAVE_ACPI_LEGACY_ALARM */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment