Skip to content

Commit 4c4762d

Browse files
Christoph HellwigJens Axboe
authored andcommitted
block: fix some more cmd_type cleanup fallout
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
1 parent 15fa6e8 commit 4c4762d

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎drivers/block/ub.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ static int ub_request_fn_1(struct ub_lun *lun, struct request *rq)
648648
return 0;
649649
}
650650

651-
if (lun->changed && rq->cmd_type != REQ_TYPE_BLOCK_PC)
651+
if (lun->changed && rq->cmd_type != REQ_TYPE_BLOCK_PC) {
652652
blk_start_request(rq);
653653
ub_end_rq(rq, SAM_STAT_CHECK_CONDITION);
654654
return 0;

‎drivers/ide/ide-atapi.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ EXPORT_SYMBOL_GPL(ide_cd_expiry);
307307

308308
int ide_cd_get_xferlen(struct request *rq)
309309
{
310-
switch (rq->cmd_type)
310+
switch (rq->cmd_type) {
311311
case REQ_TYPE_FS:
312312
return 32768;
313313
case REQ_TYPE_SENSE:
@@ -477,12 +477,12 @@ static ide_startstop_t ide_pc_intr(ide_drive_t *drive)
477477
if (uptodate == 0)
478478
drive->failed_pc = NULL;
479479

480-
if (rq->cmd_type == REQ_TYPE_SPECIAL)
480+
if (rq->cmd_type == REQ_TYPE_SPECIAL) {
481481
rq->errors = 0;
482482
error = 0;
483483
} else {
484484

485-
if (req->cmd_type != REQ_TYPE_FS && uptodate <= 0) {
485+
if (rq->cmd_type != REQ_TYPE_FS && uptodate <= 0) {
486486
if (rq->errors == 0)
487487
rq->errors = -EIO;
488488
}

‎drivers/ide/ide-cd.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ static int cdrom_decode_status(ide_drive_t *drive, u8 stat)
318318
cdrom_saw_media_change(drive);
319319

320320
if (rq->cmd_type == REQ_TYPE_FS &&
321-
!(rq->cmd_flags & REQ_QUIET)) {
321+
!(rq->cmd_flags & REQ_QUIET))
322322
printk(KERN_ERR PFX "%s: tray open\n",
323323
drive->name);
324324
}
@@ -375,7 +375,7 @@ static int cdrom_decode_status(ide_drive_t *drive, u8 stat)
375375
do_end_request = 1;
376376
break;
377377
default:
378-
if (req->cmd_type != REQ_TYPE_FS)
378+
if (rq->cmd_type != REQ_TYPE_FS)
379379
break;
380380
if (err & ~ATA_ABORTED) {
381381
/* go to the default handler for other errors */

‎drivers/ide/ide-io.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ static ide_startstop_t start_request (ide_drive_t *drive, struct request *rq)
353353
pm->pm_step == IDE_PM_COMPLETED)
354354
ide_complete_pm_rq(drive, rq);
355355
return startstop;
356-
} else if (!rq->rq_disk && rq->cmd_type == REQ_TYPE_SPECIAL) {
356+
} else if (!rq->rq_disk && rq->cmd_type == REQ_TYPE_SPECIAL)
357357
/*
358358
* TODO: Once all ULDs have been modified to
359359
* check for specific op codes rather than

0 commit comments

Comments
 (0)