Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128039
b: refs/heads/master
c: 95d9a7a
h: refs/heads/master
i:
  128037: 6398ac9
  128035: bbfd87f
  128031: 17f11d8
v: v3
  • Loading branch information
Lin Ming authored and Len Brown committed Dec 31, 2008
1 parent cb122f6 commit cd27691
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0175d562a29ad052c510782c7e76bc63d5155b9b
refs/heads/master: 95d9a7a828aedef965234f348b916caa98be1e6c
12 changes: 3 additions & 9 deletions trunk/drivers/acpi/sleep/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ static int acpi_system_sleep_seq_show(struct seq_file *seq, void *offset)
{
int i;

ACPI_FUNCTION_TRACE("acpi_system_sleep_seq_show");

for (i = 0; i <= ACPI_STATE_S5; i++) {
if (sleep_states[i]) {
seq_printf(seq, "S%d ", i);
Expand Down Expand Up @@ -93,8 +91,6 @@ static int acpi_system_alarm_seq_show(struct seq_file *seq, void *offset)
unsigned char rtc_control = 0;
unsigned long flags;

ACPI_FUNCTION_TRACE("acpi_system_alarm_seq_show");

spin_lock_irqsave(&rtc_lock, flags);

sec = CMOS_READ(RTC_SECONDS_ALARM);
Expand Down Expand Up @@ -227,13 +223,11 @@ acpi_system_write_alarm(struct file *file,
int adjust = 0;
unsigned char rtc_control = 0;

ACPI_FUNCTION_TRACE("acpi_system_write_alarm");

if (count > sizeof(alarm_string) - 1)
return_VALUE(-EINVAL);
return -EINVAL;

if (copy_from_user(alarm_string, buffer, count))
return_VALUE(-EFAULT);
return -EFAULT;

alarm_string[count] = '\0';

Expand Down Expand Up @@ -334,7 +328,7 @@ acpi_system_write_alarm(struct file *file,

result = 0;
end:
return_VALUE(result ? result : count);
return result ? result : count;
}
#endif /* HAVE_ACPI_LEGACY_ALARM */

Expand Down

0 comments on commit cd27691

Please sign in to comment.