aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ide-scsi.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-15 15:21:52 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-15 15:21:52 -0400
commitc8c51129805c0efb32f34afd3af8fe94f5757363 (patch)
tree8aa6ddbb78a79cadc1fc8d561a45fa05a02822ac /drivers/scsi/ide-scsi.c
parent3e52fb4d1f4cc9630422982b6c5fa571e30f9889 (diff)
ide-scsi: remove superfluous BUG_ON() from idescsi_transfer_pc()
ide_set_handler() bugs on ->handler == NULL so no need to do it in idescsi_transfer_pc(). There should be no functional changes caused by this patch. Cc: Borislav Petkov <petkovbb@gmail.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/scsi/ide-scsi.c')
-rw-r--r--drivers/scsi/ide-scsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ide-scsi.c b/drivers/scsi/ide-scsi.c
index 36c2c3bf111d..e9d3dbf596c7 100644
--- a/drivers/scsi/ide-scsi.c
+++ b/drivers/scsi/ide-scsi.c
@@ -469,7 +469,7 @@ static ide_startstop_t idescsi_transfer_pc(ide_drive_t *drive)
469 "issuing a packet command\n"); 469 "issuing a packet command\n");
470 return ide_do_reset (drive); 470 return ide_do_reset (drive);
471 } 471 }
472 BUG_ON(HWGROUP(drive)->handler != NULL); 472
473 /* Set the interrupt routine */ 473 /* Set the interrupt routine */
474 ide_set_handler(drive, &idescsi_pc_intr, get_timeout(pc), idescsi_expiry); 474 ide_set_handler(drive, &idescsi_pc_intr, get_timeout(pc), idescsi_expiry);
475 475