patch-2.3.43 linux/drivers/usb/printer.c

Next file: linux/drivers/usb/scanner.c
Previous file: linux/drivers/usb/ov511.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.42/linux/drivers/usb/printer.c linux/drivers/usb/printer.c
@@ -206,7 +206,6 @@
 
 static ssize_t usblp_write(struct file *file, const char *buffer, size_t count, loff_t *ppos)
 {
-	DECLARE_WAITQUEUE(wait, current);
 	struct usblp *usblp = file->private_data;
 	int retval, timeout, writecount = 0;
 
@@ -267,7 +266,6 @@
 static ssize_t usblp_read(struct file *file, char *buffer, size_t count, loff_t *ppos)
 {
 	struct usblp *usblp = file->private_data;
-	DECLARE_WAITQUEUE(wait, current);
 
 	if (!usblp->bidir)
 		return -EINVAL;
@@ -423,7 +421,7 @@
 	write:		usblp_write,
 	open:		usblp_open,
 	release:	usblp_release,
-	poll:		usblp_poll
+	poll:		usblp_poll,
 };
 
 static struct usb_driver usblp_driver = {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)