Permalink
Browse files

Removed unnecessary copy_to_user call.

  • Loading branch information...
1 parent b41b5d9 commit 040181d9e09e3ab51da6fb9b41ac4c2a71654108 @nowrep nowrep committed Jun 2, 2013
Showing with 0 additions and 3 deletions.
  1. +0 −3 acpi_call.c
View
3 acpi_call.c
@@ -309,9 +309,6 @@ static ssize_t acpi_proc_read( struct file *filp, char __user *buff,
int len = strlen(result_buffer);
// output the current result buffer
- if (copy_to_user(buff, result_buffer, len + 1))
- return -EFAULT;
-
ret = simple_read_from_buffer(buff, count, off, result_buffer, len + 1);
// initialize the result buffer for later

0 comments on commit 040181d

Please sign in to comment.