diff options
| author | tsutsui <tsutsui@NetBSD.org> | 2007-03-06 14:03:07 +0000 |
|---|---|---|
| committer | tsutsui <tsutsui@NetBSD.org> | 2007-03-06 14:03:07 +0000 |
| commit | d3199011548b751b680bca5d978800736960f2f7 (patch) | |
| tree | 2a43e2a4a20158ad8b6a31b19f0b6c467d61f728 /sys/arch/atari/dev | |
| parent | 582dc914585bf54d0f590290d73e05adeb4e8b37 (diff) | |
Make io_data (char *) rather than adding an extra cast
since it's used only in this file to calculate buffer address.
Diffstat (limited to 'sys/arch/atari/dev')
| -rw-r--r-- | sys/arch/atari/dev/fd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/atari/dev/fd.c b/sys/arch/atari/dev/fd.c index e5c6cd96711..60b2db4292f 100644 --- a/sys/arch/atari/dev/fd.c +++ b/sys/arch/atari/dev/fd.c @@ -1,4 +1,4 @@ -/* $NetBSD: fd.c,v 1.55 2007/03/06 13:54:45 he Exp $ */ +/* $NetBSD: fd.c,v 1.56 2007/03/06 14:03:07 tsutsui Exp $ */ /* * Copyright (c) 1995 Leo Weppelman. @@ -49,7 +49,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.55 2007/03/06 13:54:45 he Exp $"); +__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.56 2007/03/06 14:03:07 tsutsui Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -147,7 +147,7 @@ struct fd_softc { short flags; /* misc flags */ short part; /* Current open partition */ int sector; /* logical sector for I/O */ - void * io_data; /* KVA for data transfer */ + char *io_data; /* KVA for data transfer */ int io_bytes; /* bytes left for I/O */ int io_dir; /* B_READ/B_WRITE */ int errcnt; /* current error count */ @@ -1038,7 +1038,7 @@ struct fd_softc *sc; sc->flags &= ~FLPF_BOUNCE; sc->sector++; - sc->io_data = (char *)sc->io_data + SECTOR_SIZE; + sc->io_data += SECTOR_SIZE; sc->io_bytes -= SECTOR_SIZE; if(sc->io_bytes <= 0) fd_state = FLP_MON; |
