Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys remove unused
details: https://anonhg.NetBSD.org/src/rev/c915e7e297ae
branches: trunk
changeset: 794743:c915e7e297ae
user: christos <christos%NetBSD.org@localhost>
date: Sun Mar 23 02:57:20 2014 +0000
description:
remove unused
diffstat:
sys/arch/i386/pnpbios/pckbc_pnpbios.c | 7 ++-----
sys/dev/gpib/mt.c | 12 ++----------
2 files changed, 4 insertions(+), 15 deletions(-)
diffs (74 lines):
diff -r 5db5ca053e89 -r c915e7e297ae sys/arch/i386/pnpbios/pckbc_pnpbios.c
--- a/sys/arch/i386/pnpbios/pckbc_pnpbios.c Sun Mar 23 02:56:33 2014 +0000
+++ b/sys/arch/i386/pnpbios/pckbc_pnpbios.c Sun Mar 23 02:57:20 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pckbc_pnpbios.c,v 1.17 2008/06/08 18:35:25 tsutsui Exp $ */
+/* $NetBSD: pckbc_pnpbios.c,v 1.18 2014/03/23 02:57:58 christos Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pckbc_pnpbios.c,v 1.17 2008/06/08 18:35:25 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pckbc_pnpbios.c,v 1.18 2014/03/23 02:57:58 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -108,16 +108,13 @@
struct pnpbiosdev_attach_args *aa = aux;
bus_space_tag_t iot;
bus_space_handle_t ioh_d, ioh_c;
- pckbc_slot_t peer;
int iobase;
sc->sc_dv = self;
if (strncmp(aa->idstr, "PNP03", 5) == 0) {
psc->sc_slot = PCKBC_KBD_SLOT;
- peer = PCKBC_AUX_SLOT;
} else if (strcmp(aa->idstr, "PNP0F13") == 0) {
psc->sc_slot = PCKBC_AUX_SLOT;
- peer = PCKBC_KBD_SLOT;
} else {
aprint_error(": unknown port!\n");
panic("pckbc_pnpbios_attach: impossible");
diff -r 5db5ca053e89 -r c915e7e297ae sys/dev/gpib/mt.c
--- a/sys/dev/gpib/mt.c Sun Mar 23 02:56:33 2014 +0000
+++ b/sys/dev/gpib/mt.c Sun Mar 23 02:57:20 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mt.c,v 1.26 2014/03/16 05:20:27 dholland Exp $ */
+/* $NetBSD: mt.c,v 1.27 2014/03/23 02:57:20 christos Exp $ */
/*-
* Copyright (c) 1996-2003 The NetBSD Foundation, Inc.
@@ -75,7 +75,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mt.c,v 1.26 2014/03/16 05:20:27 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mt.c,v 1.27 2014/03/23 02:57:20 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -962,20 +962,12 @@
int
mtread(dev_t dev, struct uio *uio, int flags)
{
- struct mt_softc *sc;
-
- sc = device_lookup_private(&mt_cd, MTUNIT(dev));
-
return (physio(mtstrategy, NULL, dev, B_READ, minphys, uio));
}
int
mtwrite(dev_t dev, struct uio *uio, int flags)
{
- struct mt_softc *sc;
-
- sc = device_lookup_private(&mt_cd, MTUNIT(dev));
-
return (physio(mtstrategy, NULL, dev, B_WRITE, minphys, uio));
}
Home |
Main Index |
Thread Index |
Old Index