Commit e14739ee authored by Robert Love's avatar Robert Love Committed by Linus Torvalds

[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.
parent 12cabdd2
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment