diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-15 15:21:54 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-15 15:21:54 -0400 |
commit | 170ee569bbe1005baebf2e9e4c3f4622d14ec851 (patch) | |
tree | f2d906cad12ab735414652f79b29a9fbd8012c99 | |
parent | 531e9e50543ebf562237b8ac64529ae09b344a43 (diff) |
ide-tape: remove SIMULATE_ERRORS debug code
Cc: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
-rw-r--r-- | drivers/ide/ide-tape.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index 41aa8b3ccab3..cc70e759fc8e 100644 --- a/drivers/ide/ide-tape.c +++ b/drivers/ide/ide-tape.c | |||
@@ -144,9 +144,6 @@ enum { | |||
144 | 144 | ||
145 | /*************************** End of tunable parameters ***********************/ | 145 | /*************************** End of tunable parameters ***********************/ |
146 | 146 | ||
147 | /* Read/Write error simulation */ | ||
148 | #define SIMULATE_ERRORS 0 | ||
149 | |||
150 | /* tape directions */ | 147 | /* tape directions */ |
151 | enum { | 148 | enum { |
152 | IDETAPE_DIR_NONE = (1 << 0), | 149 | IDETAPE_DIR_NONE = (1 << 0), |
@@ -745,9 +742,6 @@ static ide_startstop_t idetape_pc_intr(ide_drive_t *drive) | |||
745 | xfer_func_t *xferfunc; | 742 | xfer_func_t *xferfunc; |
746 | idetape_io_buf *iobuf; | 743 | idetape_io_buf *iobuf; |
747 | unsigned int temp; | 744 | unsigned int temp; |
748 | #if SIMULATE_ERRORS | ||
749 | static int error_sim_count; | ||
750 | #endif | ||
751 | u16 bcount; | 745 | u16 bcount; |
752 | u8 stat, ireason; | 746 | u8 stat, ireason; |
753 | 747 | ||
@@ -775,14 +769,6 @@ static ide_startstop_t idetape_pc_intr(ide_drive_t *drive) | |||
775 | pc->flags &= ~PC_FLAG_DMA_IN_PROGRESS; | 769 | pc->flags &= ~PC_FLAG_DMA_IN_PROGRESS; |
776 | local_irq_enable_in_hardirq(); | 770 | local_irq_enable_in_hardirq(); |
777 | 771 | ||
778 | #if SIMULATE_ERRORS | ||
779 | if ((pc->c[0] == WRITE_6 || pc->c[0] == READ_6) && | ||
780 | (++error_sim_count % 100) == 0) { | ||
781 | printk(KERN_INFO "ide-tape: %s: simulating error\n", | ||
782 | tape->name); | ||
783 | stat |= ERR_STAT; | ||
784 | } | ||
785 | #endif | ||
786 | if ((stat & ERR_STAT) && pc->c[0] == REQUEST_SENSE) | 772 | if ((stat & ERR_STAT) && pc->c[0] == REQUEST_SENSE) |
787 | stat &= ~ERR_STAT; | 773 | stat &= ~ERR_STAT; |
788 | if ((stat & ERR_STAT) || (pc->flags & PC_FLAG_DMA_ERROR)) { | 774 | if ((stat & ERR_STAT) || (pc->flags & PC_FLAG_DMA_ERROR)) { |