diff options
Diffstat (limited to 'drivers/scsi/ide-scsi.c')
-rw-r--r-- | drivers/scsi/ide-scsi.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/scsi/ide-scsi.c b/drivers/scsi/ide-scsi.c index 39b760a24241..988e6f7af01a 100644 --- a/drivers/scsi/ide-scsi.c +++ b/drivers/scsi/ide-scsi.c | |||
@@ -600,8 +600,7 @@ static ide_startstop_t idescsi_transfer_pc(ide_drive_t *drive) | |||
600 | "issuing a packet command\n"); | 600 | "issuing a packet command\n"); |
601 | return ide_do_reset (drive); | 601 | return ide_do_reset (drive); |
602 | } | 602 | } |
603 | if (HWGROUP(drive)->handler != NULL) | 603 | BUG_ON(HWGROUP(drive)->handler != NULL); |
604 | BUG(); | ||
605 | /* Set the interrupt routine */ | 604 | /* Set the interrupt routine */ |
606 | ide_set_handler(drive, &idescsi_pc_intr, get_timeout(pc), idescsi_expiry); | 605 | ide_set_handler(drive, &idescsi_pc_intr, get_timeout(pc), idescsi_expiry); |
607 | /* Send the actual packet */ | 606 | /* Send the actual packet */ |
@@ -691,8 +690,7 @@ static ide_startstop_t idescsi_issue_pc (ide_drive_t *drive, idescsi_pc_t *pc) | |||
691 | set_bit(PC_DMA_OK, &pc->flags); | 690 | set_bit(PC_DMA_OK, &pc->flags); |
692 | 691 | ||
693 | if (test_bit(IDESCSI_DRQ_INTERRUPT, &scsi->flags)) { | 692 | if (test_bit(IDESCSI_DRQ_INTERRUPT, &scsi->flags)) { |
694 | if (HWGROUP(drive)->handler != NULL) | 693 | BUG_ON(HWGROUP(drive)->handler != NULL); |
695 | BUG(); | ||
696 | ide_set_handler(drive, &idescsi_transfer_pc, | 694 | ide_set_handler(drive, &idescsi_transfer_pc, |
697 | get_timeout(pc), idescsi_expiry); | 695 | get_timeout(pc), idescsi_expiry); |
698 | /* Issue the packet command */ | 696 | /* Issue the packet command */ |