From 725b72353b1c7937e8fc44548f56f369aa00255e Mon Sep 17 00:00:00 2001 From: Borislav Petkov Date: Sat, 2 Feb 2008 19:56:36 +0100 Subject: [PATCH] --- yaml --- r: 82543 b: refs/heads/master c: 0bf399e69c365a71c230014af90966faea92e0a3 h: refs/heads/master i: 82541: 0e01361b95889cd280b518f9739053f8fd41b3d0 82539: 4ef0d83dc44c51c07c889de82647274316d5371d 82535: b843dbaa13b437b49e52891891f3c6a614857a4d 82527: 2721104ed57438e8c7328c26943d16402f55574d v: v3 --- [refs] | 2 +- trunk/drivers/ide/ide-floppy.c | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index 763e1653f786..26119e6afb5a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d652c1380870228dfe05a2f00ce4edec3f5bd42d +refs/heads/master: 0bf399e69c365a71c230014af90966faea92e0a3 diff --git a/trunk/drivers/ide/ide-floppy.c b/trunk/drivers/ide/ide-floppy.c index 416719c1718b..5ea1b1b86c4e 100644 --- a/trunk/drivers/ide/ide-floppy.c +++ b/trunk/drivers/ide/ide-floppy.c @@ -52,7 +52,6 @@ */ #define IDEFLOPPY_DEBUG_LOG 0 #define IDEFLOPPY_DEBUG_INFO 0 -#define IDEFLOPPY_DEBUG_BUGS 1 /* #define IDEFLOPPY_DEBUG(fmt, args...) printk(KERN_INFO fmt, ## args) */ #define IDEFLOPPY_DEBUG( fmt, args... ) @@ -280,13 +279,11 @@ static void idefloppy_discard_data (ide_drive_t *drive, unsigned int bcount) (void) HWIF(drive)->INB(IDE_DATA_REG); } -#if IDEFLOPPY_DEBUG_BUGS -static void idefloppy_write_zeros (ide_drive_t *drive, unsigned int bcount) +static void idefloppy_write_zeros(ide_drive_t *drive, unsigned int bcount) { while (bcount--) HWIF(drive)->OUTB(0, IDE_DATA_REG); } -#endif /* IDEFLOPPY_DEBUG_BUGS */ /* @@ -382,12 +379,10 @@ static void idefloppy_output_buffers (ide_drive_t *drive, idefloppy_pc_t *pc, un idefloppy_do_end_request(drive, 1, done >> 9); -#if IDEFLOPPY_DEBUG_BUGS if (bcount) { printk(KERN_ERR "%s: leftover data in idefloppy_output_buffers, bcount == %d\n", drive->name, bcount); idefloppy_write_zeros(drive, bcount); } -#endif } static void idefloppy_update_buffers (ide_drive_t *drive, idefloppy_pc_t *pc)