projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d515e86
)
HID: remove unused variable from hidraw_read
author
Stefan Achatz
<erazor_de@users.sourceforge.net>
Wed, 19 May 2010 20:41:10 +0000
(22:41 +0200)
committer
Jiri Kosina
<jkosina@suse.cz>
Tue, 25 May 2010 07:47:19 +0000
(09:47 +0200)
Removed unused variable from hidraw_read.
Signed-off-by: Stefan Achatz <erazor_de@users.sourceforge.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hidraw.c
patch
|
blob
|
history
diff --git
a/drivers/hid/hidraw.c
b/drivers/hid/hidraw.c
index
3ccd478
..
47d70c5
100644
(file)
--- a/
drivers/hid/hidraw.c
+++ b/
drivers/hid/hidraw.c
@@
-46,7
+46,6
@@
static ssize_t hidraw_read(struct file *file, char __user *buffer, size_t count,
{
struct hidraw_list *list = file->private_data;
int ret = 0, len;
- char *report;
DECLARE_WAITQUEUE(wait, current);
mutex_lock(&list->read_mutex);
@@
-84,7
+83,6
@@
static ssize_t hidraw_read(struct file *file, char __user *buffer, size_t count,
if (ret)
goto out;
- report = list->buffer[list->tail].value;
len = list->buffer[list->tail].len > count ?
count : list->buffer[list->tail].len;