diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-06-23 05:06:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-23 10:43:08 -0400 |
commit | 125e18745f16685f69a34fd6130d47598fc4bf54 (patch) | |
tree | c97ed94b0525a572efa1bd4990a55b18be5d781d /drivers/scsi/ide-scsi.c | |
parent | 78ce89c92bc6eaf5933b5664bff64253a7103bd7 (diff) |
[PATCH] More BUG_ON conversion
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Acked-by: "Salyzyn, Mark" <mark_salyzyn@adaptec.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
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 */ |