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

Paul Mackerras (paulus@samba.org)
Sat, 7 Jul 2001 12:31:42 +1000 (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/