patch-2.0.1 linux/drivers/char/lp.c

Next file: linux/drivers/char/mem.c
Previous file: linux/drivers/char/console.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.0/linux/drivers/char/lp.c linux/drivers/char/lp.c
@@ -322,9 +322,9 @@
 	unsigned int irq;
 
 	if (minor >= LP_NO)
-		return -ENODEV;
+		return -ENXIO;
 	if ((LP_F(minor) & LP_EXIST) == 0)
-		return -ENODEV;
+		return -ENXIO;
 	if (LP_F(minor) & LP_BUSY)
 		return -EBUSY;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov