]> err.no Git - linux-2.6/commitdiff
[PATCH] scsi: kill overeager "not-ready" messages
authorJens Axboe <axboe@suse.de>
Fri, 28 Jul 2006 07:04:09 +0000 (09:04 +0200)
committerJens Axboe <axboe@suse.de>
Fri, 28 Jul 2006 07:04:09 +0000 (09:04 +0200)
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>
drivers/scsi/scsi_ioctl.c

index a89c4115cfbaa4c674b765a503e8ee9c3ea138a1..32293f4516694ae0d7bf237364a35892f2e53156 100644 (file)
@@ -110,11 +110,8 @@ static int ioctl_internal_command(struct scsi_device *sdev, char *cmd,
                                       sshdr.asc, sshdr.ascq);
                        break;
                case NOT_READY: /* This happens if there is no disc in drive */
-                       if (sdev->removable && (cmd[0] != TEST_UNIT_READY)) {
-                               printk(KERN_INFO "Device not ready. Make sure"
-                                      " there is a disc in the drive.\n");
+                       if (sdev->removable)
                                break;
-                       }
                case UNIT_ATTENTION:
                        if (sdev->removable) {
                                sdev->changed = 1;