Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/dreamcast/dev/maple Remove unused variables
details: https://anonhg.NetBSD.org/src/rev/468d7841ff15
branches: trunk
changeset: 327688:468d7841ff15
user: martin <martin%NetBSD.org@localhost>
date: Fri Mar 14 08:55:40 2014 +0000
description:
Remove unused variables
diffstat:
sys/arch/dreamcast/dev/maple/maple.c | 7 ++-----
sys/arch/dreamcast/dev/maple/mlcd.c | 11 +++--------
2 files changed, 5 insertions(+), 13 deletions(-)
diffs (74 lines):
diff -r 0006104d05d4 -r 468d7841ff15 sys/arch/dreamcast/dev/maple/maple.c
--- a/sys/arch/dreamcast/dev/maple/maple.c Fri Mar 14 08:50:08 2014 +0000
+++ b/sys/arch/dreamcast/dev/maple/maple.c Fri Mar 14 08:55:40 2014 +0000
@@ -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 @@
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 */
diff -r 0006104d05d4 -r 468d7841ff15 sys/arch/dreamcast/dev/maple/mlcd.c
--- a/sys/arch/dreamcast/dev/maple/mlcd.c Fri Mar 14 08:50:08 2014 +0000
+++ b/sys/arch/dreamcast/dev/maple/mlcd.c Fri Mar 14 08:55:40 2014 +0000
@@ -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 @@
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 @@
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) {
Home |
Main Index |
Thread Index |
Old Index