[SCSI] Handle disk devices which can not process medium access commands
[linux-3.10.git] / drivers / scsi / scsi.c
index 2aeb2e9..07322ec 100644 (file)
@@ -782,12 +782,6 @@ static void scsi_done(struct scsi_cmnd *cmd)
        blk_complete_request(cmd->request);
 }
 
-/* Move this to a header if it becomes more generally useful */
-static struct scsi_driver *scsi_cmd_to_driver(struct scsi_cmnd *cmd)
-{
-       return *(struct scsi_driver **)cmd->request->rq_disk->private_data;
-}
-
 /**
  * scsi_finish_command - cleanup and pass command back to upper layer
  * @cmd: the command