Module Name: src Committed By: martin Date: Fri Mar 14 08:55:41 UTC 2014
Modified Files: src/sys/arch/dreamcast/dev/maple: maple.c mlcd.c Log Message: Remove unused variables To generate a diff of this commit: cvs rdiff -u -r1.46 -r1.47 src/sys/arch/dreamcast/dev/maple/maple.c cvs rdiff -u -r1.14 -r1.15 src/sys/arch/dreamcast/dev/maple/mlcd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/dreamcast/dev/maple/maple.c diff -u src/sys/arch/dreamcast/dev/maple/maple.c:1.46 src/sys/arch/dreamcast/dev/maple/maple.c:1.47 --- src/sys/arch/dreamcast/dev/maple/maple.c:1.46 Sun Oct 13 06:55:34 2013 +++ src/sys/arch/dreamcast/dev/maple/maple.c Fri Mar 14 08:55:40 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: maple.c,v 1.46 2013/10/13 06:55:34 riz Exp $ */ +/* $NetBSD: maple.c,v 1.47 2014/03/14 08:55:40 martin Exp $ */ /*- * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -62,7 +62,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: maple.c,v 1.46 2013/10/13 06:55:34 riz Exp $"); +__KERNEL_RCSID(0, "$NetBSD: maple.c,v 1.47 2014/03/14 08:55:40 martin Exp $"); #include <sys/param.h> #include <sys/device.h> @@ -554,10 +554,7 @@ static void maple_check_unit_change(struct maple_softc *sc, struct maple_unit *u) { struct maple_devinfo *newinfo = (void *) (u->u_rxbuf + 1); - int port, subunit; - port = u->port; - subunit = u->subunit; if (memcmp(&u->devinfo, newinfo, sizeof(struct maple_devinfo)) == 0) goto out; /* no change */ Index: src/sys/arch/dreamcast/dev/maple/mlcd.c diff -u src/sys/arch/dreamcast/dev/maple/mlcd.c:1.14 src/sys/arch/dreamcast/dev/maple/mlcd.c:1.15 --- src/sys/arch/dreamcast/dev/maple/mlcd.c:1.14 Sun Oct 17 14:17:49 2010 +++ src/sys/arch/dreamcast/dev/maple/mlcd.c Fri Mar 14 08:55:40 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: mlcd.c,v 1.14 2010/10/17 14:17:49 tsutsui Exp $ */ +/* $NetBSD: mlcd.c,v 1.15 2014/03/14 08:55:40 martin Exp $ */ /*- * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: mlcd.c,v 1.14 2010/10/17 14:17:49 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: mlcd.c,v 1.15 2014/03/14 08:55:40 martin Exp $"); #include <sys/param.h> #include <sys/device.h> @@ -526,10 +526,8 @@ static void mlcdstart_bp(struct mlcd_softc *sc) { struct mlcd_buf *bp; - struct mlcd_pt *pt; bp = sc->sc_bp; - pt = &sc->sc_pt[bp->lb_partno]; /* handle retry */ if (sc->sc_retry++ > MLCD_MAXRETRY) { @@ -720,14 +718,11 @@ mlcdwrite(dev_t dev, struct uio *uio, in int mlcdioctl(dev_t dev, u_long cmd, void *data, int flag, struct lwp *l) { - int unit, part; + int unit; struct mlcd_softc *sc; - struct mlcd_pt *pt; unit = MLCD_UNIT(dev); - part = MLCD_PART(dev); sc = device_lookup_private(&mlcd_cd, unit); - pt = &sc->sc_pt[part]; switch (cmd) {