mirror of https://gitee.com/openkylin/linux.git
ide-floppy: remove IDEFLOPPY_DEBUG_BUGS macro
Signed-off-by: Borislav Petkov <bbpetkov@yahoo.de> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
parent
d652c13808
commit
0bf399e69c
|
@ -52,7 +52,6 @@
|
||||||
*/
|
*/
|
||||||
#define IDEFLOPPY_DEBUG_LOG 0
|
#define IDEFLOPPY_DEBUG_LOG 0
|
||||||
#define IDEFLOPPY_DEBUG_INFO 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...) printk(KERN_INFO fmt, ## args) */
|
||||||
#define IDEFLOPPY_DEBUG( 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);
|
(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--)
|
while (bcount--)
|
||||||
HWIF(drive)->OUTB(0, IDE_DATA_REG);
|
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);
|
idefloppy_do_end_request(drive, 1, done >> 9);
|
||||||
|
|
||||||
#if IDEFLOPPY_DEBUG_BUGS
|
|
||||||
if (bcount) {
|
if (bcount) {
|
||||||
printk(KERN_ERR "%s: leftover data in idefloppy_output_buffers, bcount == %d\n", drive->name, bcount);
|
printk(KERN_ERR "%s: leftover data in idefloppy_output_buffers, bcount == %d\n", drive->name, bcount);
|
||||||
idefloppy_write_zeros(drive, bcount);
|
idefloppy_write_zeros(drive, bcount);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void idefloppy_update_buffers (ide_drive_t *drive, idefloppy_pc_t *pc)
|
static void idefloppy_update_buffers (ide_drive_t *drive, idefloppy_pc_t *pc)
|
||||||
|
|
Loading…
Reference in New Issue