summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Love <rml@tech9.net>2002-12-13 03:38:04 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2002-12-13 03:38:04 -0800
commite14739ee0b0fb7ca992062128a8064fc2e49c090 (patch)
tree9052eb95dc8d05fc4fd44475a553c963cbb1b5f4
parent12cabdd2f6115608077167db4d92f003086d1719 (diff)
[PATCH] remove error message on illegal ioctl
This error message is uber annoying and needs to go. Non-root can flood the console with this junk on invalid SCSI CD-ROM ioctl(), and that is exactly what gnome-cd does. An illegal ioctl() returns an error to the program. That is sufficient - we do not need KERN_ERROR warnings all over the place. Especially when any user can cause them at any rate.
-rw-r--r--drivers/scsi/sr_ioctl.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/scsi/sr_ioctl.c b/drivers/scsi/sr_ioctl.c
index 30d16fed95d7..85d7b40c3a13 100644
--- a/drivers/scsi/sr_ioctl.c
+++ b/drivers/scsi/sr_ioctl.c
@@ -156,9 +156,6 @@ int sr_do_ioctl(Scsi_CD *cd, struct cdrom_generic_command *cgc)
err = -ENOMEDIUM;
break;
case ILLEGAL_REQUEST:
- if (!cgc->quiet)
- printk(KERN_ERR "%s: CDROM (ioctl) reports ILLEGAL "
- "REQUEST.\n", cd->cdi.name);
err = -EIO;
if (SRpnt->sr_sense_buffer[12] == 0x20 &&
SRpnt->sr_sense_buffer[13] == 0x00)