Patchwork hso: Fix unused variable warning

login
register
mail settings
Submitter Alan Cox
Date Nov. 15, 2010, 5:30 p.m.
Message ID <20101115173038.6846.72062.stgit@localhost.localdomain>
Download mbox | patch
Permalink /patch/71259/
State Accepted
Delegated to: David Miller
Headers show

Comments

Alan Cox - Nov. 15, 2010, 5:30 p.m.
From: Alan Cox <alan@linux.intel.com>

Fallout from the TIOCGICOUNT work

Signed-off-by: Alan Cox <alan@linux.intel.com>
---

 drivers/net/usb/hso.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)



--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Miller - Nov. 15, 2010, 7:13 p.m.
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
Date: Mon, 15 Nov 2010 17:30:42 +0000

> From: Alan Cox <alan@linux.intel.com>
> 
> Fallout from the TIOCGICOUNT work
> 
> Signed-off-by: Alan Cox <alan@linux.intel.com>

Applied to net-next-2.6, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c
index b154a94..be8cc2a 100644
--- a/drivers/net/usb/hso.c
+++ b/drivers/net/usb/hso.c
@@ -1745,7 +1745,6 @@  static int hso_serial_ioctl(struct tty_struct *tty, struct file *file,
 			    unsigned int cmd, unsigned long arg)
 {
 	struct hso_serial *serial =  get_serial_by_tty(tty);
-	void __user *uarg = (void __user *)arg;
 	int ret = 0;
 	D4("IOCTL cmd: %d, arg: %ld", cmd, arg);