diff options
-rw-r--r-- | drivers/ide/ide-floppy.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c index df19ede73884..00948c39822b 100644 --- a/drivers/ide/ide-floppy.c +++ b/drivers/ide/ide-floppy.c | |||
@@ -351,10 +351,7 @@ static void ide_floppy_callback(ide_drive_t *drive) | |||
351 | 351 | ||
352 | static void idefloppy_init_pc(struct ide_atapi_pc *pc) | 352 | static void idefloppy_init_pc(struct ide_atapi_pc *pc) |
353 | { | 353 | { |
354 | memset(pc->c, 0, 12); | 354 | memset(pc, 0, sizeof(*pc)); |
355 | pc->retries = 0; | ||
356 | pc->flags = 0; | ||
357 | pc->req_xfer = 0; | ||
358 | pc->buf = pc->pc_buf; | 355 | pc->buf = pc->pc_buf; |
359 | pc->buf_size = IDEFLOPPY_PC_BUFFER_SIZE; | 356 | pc->buf_size = IDEFLOPPY_PC_BUFFER_SIZE; |
360 | pc->callback = ide_floppy_callback; | 357 | pc->callback = ide_floppy_callback; |