From: Alan Cox People have had a long time to change and be aware of the correct return. Some drivers now generate the correct return too. Signed-off-by: Andrew Morton --- 25-akpm/Documentation/scsi/scsi_mid_low_api.txt | 4 ---- 1 files changed, 4 deletions(-) diff -puN Documentation/scsi/scsi_mid_low_api.txt~scsi-docs-fix Documentation/scsi/scsi_mid_low_api.txt --- 25/Documentation/scsi/scsi_mid_low_api.txt~scsi-docs-fix Thu Sep 30 17:43:05 2004 +++ 25-akpm/Documentation/scsi/scsi_mid_low_api.txt Thu Sep 30 17:43:05 2004 @@ -1091,10 +1091,6 @@ Details: * mid level does not recognize it, then the LLD that controls * the device receives the ioctl. According to recent Unix standards * unsupported ioctl() 'cmd' numbers should return -ENOTTY. - * However the mid level returns -EINVAL for unrecognized 'cmd' - * numbers when this function is not supplied by the driver. - * Unfortunately some applications expect -EINVAL and react badly - * when -ENOTTY is returned; stick with -EINVAL. * * Optionally defined in: LLD **/ _