diff options
author | phk <phk@FreeBSD.org> | 2003-05-31 18:21:40 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-05-31 18:21:40 +0000 |
commit | ab75fd4a127a93fa1a831ff36204389caac075e4 (patch) | |
tree | 83993dee5f33d3b70df5c282da4f00c378ff31bf | |
parent | 304317cb1f4c8b5613119c47edd6a1261992f081 (diff) | |
download | FreeBSD-src-ab75fd4a127a93fa1a831ff36204389caac075e4.zip FreeBSD-src-ab75fd4a127a93fa1a831ff36204389caac075e4.tar.gz |
Fix \ alignment in macro.
Remove breaks after return.
Remove unused variable.
Found by: FlexeLint
-rw-r--r-- | sys/dev/mcd/mcd.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/mcd/mcd.c b/sys/dev/mcd/mcd.c index 7144f16..c65301b 100644 --- a/sys/dev/mcd/mcd.c +++ b/sys/dev/mcd/mcd.c @@ -64,7 +64,7 @@ static const char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore"; #include <dev/mcd/mcdreg.h> #include <dev/mcd/mcdvar.h> -#define MCD_TRACE(format, args...) \ +#define MCD_TRACE(format, args...) \ { \ if (sc->debug) { \ device_printf(sc->dev, "status=0x%02x: ", \ @@ -446,11 +446,9 @@ MCD_TRACE("ioctl called 0x%lx\n", cmd); case DIOCGMEDIASIZE: *(off_t *)addr = (off_t)sc->data.disksize * sc->data.blksize; return (0); - break; case DIOCGSECTORSIZE: *(u_int *)addr = sc->data.blksize; return (0); - break; case CDIOCPLAYTRACKS: return mcd_playtracks(sc, (struct ioc_play_track *) addr); @@ -542,11 +540,9 @@ twiddle_thumbs(struct mcd_softc *sc, int count, char *whine) int mcd_probe(struct mcd_softc *sc) { - int unit; int i, j; unsigned char stbytes[3]; - unit = device_get_unit(sc->dev); sc->data.flags = MCDPROBING; #ifdef NOTDEF |