Commit a75ad3c27a6ad78c4306cac939938050dcde54f3

Authored by Jens Axboe
1 parent 71ef51cc17

[PATCH] scsi: kill overeager "not-ready" messages

HAL and friends have a tendency to trigger this one all the time.
It's not really interesting, so kill it. The vendor kernels all do
anyways.

Signed-off-by: Jens Axboe <axboe@suse.de>

Showing 1 changed file with 1 additions and 4 deletions Side-by-side Diff

drivers/scsi/scsi_ioctl.c
... ... @@ -110,11 +110,8 @@
110 110 sshdr.asc, sshdr.ascq);
111 111 break;
112 112 case NOT_READY: /* This happens if there is no disc in drive */
113   - if (sdev->removable && (cmd[0] != TEST_UNIT_READY)) {
114   - printk(KERN_INFO "Device not ready. Make sure"
115   - " there is a disc in the drive.\n");
  113 + if (sdev->removable)
116 114 break;
117   - }
118 115 case UNIT_ATTENTION:
119 116 if (sdev->removable) {
120 117 sdev->changed = 1;