diff options
Diffstat (limited to 'drivers/hid/hidraw.c')
-rw-r--r-- | drivers/hid/hidraw.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/hid/hidraw.c b/drivers/hid/hidraw.c index 3ccd47850677..47d70c523d93 100644 --- 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, | |||
46 | { | 46 | { |
47 | struct hidraw_list *list = file->private_data; | 47 | struct hidraw_list *list = file->private_data; |
48 | int ret = 0, len; | 48 | int ret = 0, len; |
49 | char *report; | ||
50 | DECLARE_WAITQUEUE(wait, current); | 49 | DECLARE_WAITQUEUE(wait, current); |
51 | 50 | ||
52 | mutex_lock(&list->read_mutex); | 51 | mutex_lock(&list->read_mutex); |
@@ -84,7 +83,6 @@ static ssize_t hidraw_read(struct file *file, char __user *buffer, size_t count, | |||
84 | if (ret) | 83 | if (ret) |
85 | goto out; | 84 | goto out; |
86 | 85 | ||
87 | report = list->buffer[list->tail].value; | ||
88 | len = list->buffer[list->tail].len > count ? | 86 | len = list->buffer[list->tail].len > count ? |
89 | count : list->buffer[list->tail].len; | 87 | count : list->buffer[list->tail].len; |
90 | 88 | ||