From patchwork Wed May 19 20:41:10 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Achatz X-Patchwork-Id: 101058 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4JKfF0t013038 for ; Wed, 19 May 2010 20:41:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753551Ab0ESUlO (ORCPT ); Wed, 19 May 2010 16:41:14 -0400 Received: from mail-in-05.arcor-online.net ([151.189.21.45]:33318 "EHLO mail-in-05.arcor-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752978Ab0ESUlN (ORCPT ); Wed, 19 May 2010 16:41:13 -0400 Received: from mail-in-18-z2.arcor-online.net (mail-in-18-z2.arcor-online.net [151.189.8.35]) by mx.arcor.de (Postfix) with ESMTP id 68350E3DA2; Wed, 19 May 2010 22:41:12 +0200 (CEST) Received: from mail-in-17.arcor-online.net (mail-in-17.arcor-online.net [151.189.21.57]) by mail-in-18-z2.arcor-online.net (Postfix) with ESMTP id 5BF35510133; Wed, 19 May 2010 22:41:12 +0200 (CEST) Received: from [192.168.0.1] (dslb-084-057-045-001.pools.arcor-ip.net [84.57.45.1]) by mail-in-17.arcor-online.net (Postfix) with ESMTPS id 0CFA5CC2A4; Wed, 19 May 2010 22:41:10 +0200 (CEST) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-17.arcor-online.net 0CFA5CC2A4 Subject: [PATCH] HID: Removed unused variable from hidraw_read From: Stefan Achatz Reply-To: erazor_de@users.sourceforge.net To: Jiri Kosina , Stefan Achatz , iceberg , Alexey Dobriyan , Tejun Heo , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 19 May 2010 22:41:10 +0200 Message-ID: <1274301670.22226.4.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 (2.28.3-1.fc12) Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 19 May 2010 20:41:15 +0000 (UTC) diff --git a/drivers/hid/hidraw.c b/drivers/hid/hidraw.c index 6eadf1a..bfe1e26 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;