[PATCH] fix drivers/usb/scanner.c ioctl return

From: Paul Mackerras (paulus@samba.org)
Date: Fri Jul 06 2001 - 21:31:42 EST


The following patch corrects the return value from the ioctl function
in the USB scanner code, in the case where the ioctl is unrecognized.

Linus, please apply.

Paul.

diff -urN linux/drivers/usb/scanner.c pmac/drivers/usb/scanner.c
--- linux/drivers/usb/scanner.c Sat Apr 28 23:02:49 2001
+++ pmac/drivers/usb/scanner.c Thu Jun 28 17:28:25 2001
@@ -909,7 +909,7 @@
                 return result;
         }
         default:
- return -ENOIOCTLCMD;
+ return -ENOTTY;
         }
         return 0;
 }
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jul 07 2001 - 21:00:19 EST