diff options
| author | Jiri Kosina <jkosina@suse.cz> | 2010-08-04 09:26:15 -0400 | 
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.cz> | 2010-08-04 09:26:15 -0400 | 
| commit | fc73697bd5bf4efe8b5b2b78ec09e00f967cd055 (patch) | |
| tree | 326d5f84b13938a12fb27468ef73db4faf43a44e /drivers/hid/hidraw.c | |
| parent | 1c5474a65bf15a4cb162dfff86d6d0b5a08a740c (diff) | |
| parent | 8c8b01c38a70661d663175d355fdea85ca082272 (diff) | |
Merge branch 'upstream' into for-linus
Conflicts:
	drivers/hid/hid-ids.h
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 | ||
