aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sr.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/sr.c')
-rw-r--r--drivers/scsi/sr.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c
index 18a3b756c63c..dd8050392d01 100644
--- a/drivers/scsi/sr.c
+++ b/drivers/scsi/sr.c
@@ -238,8 +238,6 @@ static void rw_intr(struct scsi_cmnd * SCpnt)
238 case ILLEGAL_REQUEST: 238 case ILLEGAL_REQUEST:
239 if (!(SCpnt->sense_buffer[0] & 0x90)) 239 if (!(SCpnt->sense_buffer[0] & 0x90))
240 break; 240 break;
241 if (!blk_fs_request(SCpnt->request))
242 break;
243 error_sector = (SCpnt->sense_buffer[3] << 24) | 241 error_sector = (SCpnt->sense_buffer[3] << 24) |
244 (SCpnt->sense_buffer[4] << 16) | 242 (SCpnt->sense_buffer[4] << 16) |
245 (SCpnt->sense_buffer[5] << 8) | 243 (SCpnt->sense_buffer[5] << 8) |
@@ -318,23 +316,6 @@ static int sr_init_command(struct scsi_cmnd * SCpnt)
318 } 316 }
319 317
320 /* 318 /*
321 * these are already setup, just copy cdb basically
322 */
323 if (SCpnt->request->flags & REQ_BLOCK_PC) {
324 scsi_setup_blk_pc_cmnd(SCpnt);
325
326 if (SCpnt->timeout_per_command)
327 timeout = SCpnt->timeout_per_command;
328
329 goto queue;
330 }
331
332 if (!(SCpnt->request->flags & REQ_CMD)) {
333 blk_dump_rq_flags(SCpnt->request, "sr unsup command");
334 return 0;
335 }
336
337 /*
338 * we do lazy blocksize switching (when reading XA sectors, 319 * we do lazy blocksize switching (when reading XA sectors,
339 * see CDROMREADMODE2 ioctl) 320 * see CDROMREADMODE2 ioctl)
340 */ 321 */
@@ -422,8 +403,6 @@ static int sr_init_command(struct scsi_cmnd * SCpnt)
422 */ 403 */
423 SCpnt->transfersize = cd->device->sector_size; 404 SCpnt->transfersize = cd->device->sector_size;
424 SCpnt->underflow = this_count << 9; 405 SCpnt->underflow = this_count << 9;
425
426queue:
427 SCpnt->allowed = MAX_RETRIES; 406 SCpnt->allowed = MAX_RETRIES;
428 SCpnt->timeout_per_command = timeout; 407 SCpnt->timeout_per_command = timeout;
429 408