Skip to contentSkip to conversation

drivers/char/nozomi.c: fix unused variable compiler warning

PATCH New Arun Bhanu 1 participant 1 message Nov 7, 2010 Char and misc drivers

lore
Share & tools
lore

Arun Bhanu

author
#0 lore raw

PATCH 1/1 drivers/char/nozomi.c: fix unused variable compiler warning

Remove the unused variable argp to fix the following warning.

drivers/char/nozomi.c: In function ‘ntty_ioctl’:
drivers/char/nozomi.c:1831:8: warning: unused variable ‘argp’

---
 drivers/char/nozomi.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/char/nozomi.c +0 -1
index dd3f9b1..294d03e 100644
@@ -1828,7 +1828,6 @@ static int ntty_ioctl(struct tty_struct *tty, struct file *file,
 		      unsigned int cmd, unsigned long arg)
 {
 	struct port *port = tty->driver_data;
-	void __user *argp = (void __user *)arg;
 	int rval = -ENOIOCTLCMD;
 
 	DBG1("******** IOCTL, cmd: %d", cmd);
Signature · 1 line
1.7.3.2