From: Stefan Achatz Date: Wed, 19 May 2010 20:41:10 +0000 (+0200) Subject: HID: remove unused variable from hidraw_read X-Git-Tag: v3.0~4146^2~4^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=83efb8fe671af3c7b5613868aadc93ce973b6c3d;p=platform%2Fkernel%2Flinux-amlogic.git HID: remove unused variable from hidraw_read Removed unused variable from hidraw_read. Signed-off-by: Stefan Achatz Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/hidraw.c b/drivers/hid/hidraw.c index 3ccd478..47d70c5 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, { 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;