Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/macppc/dev Remove unnecessary casts.
details: https://anonhg.NetBSD.org/src/rev/02d07b19f87e
branches: trunk
changeset: 500829:02d07b19f87e
user: tsubai <tsubai%NetBSD.org@localhost>
date: Tue Dec 19 03:13:40 2000 +0000
description:
Remove unnecessary casts.
diffstat:
sys/arch/macppc/dev/akbd.c | 6 +++---
sys/arch/macppc/dev/ams.c | 7 ++++---
2 files changed, 7 insertions(+), 6 deletions(-)
diffs (62 lines):
diff -r 7cf2bbb366a1 -r 02d07b19f87e sys/arch/macppc/dev/akbd.c
--- a/sys/arch/macppc/dev/akbd.c Tue Dec 19 02:59:23 2000 +0000
+++ b/sys/arch/macppc/dev/akbd.c Tue Dec 19 03:13:40 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: akbd.c,v 1.11 2000/12/19 02:50:11 tsubai Exp $ */
+/* $NetBSD: akbd.c,v 1.12 2000/12/19 03:13:40 tsubai Exp $ */
/*
* Copyright (C) 1998 Colin Wood
@@ -110,7 +110,7 @@
struct cfdata *cf;
void *aux;
{
- struct adb_attach_args *aa_args = (struct adb_attach_args *)aux;
+ struct adb_attach_args *aa_args = aux;
if (aa_args->origaddr == ADBADDR_KBD)
return 1;
@@ -125,7 +125,7 @@
{
ADBSetInfoBlock adbinfo;
struct akbd_softc *sc = (struct akbd_softc *)self;
- struct adb_attach_args *aa_args = (struct adb_attach_args *)aux;
+ struct adb_attach_args *aa_args = aux;
int error, kbd_done;
short cmd;
u_char buffer[9];
diff -r 7cf2bbb366a1 -r 02d07b19f87e sys/arch/macppc/dev/ams.c
--- a/sys/arch/macppc/dev/ams.c Tue Dec 19 02:59:23 2000 +0000
+++ b/sys/arch/macppc/dev/ams.c Tue Dec 19 03:13:40 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ams.c,v 1.10 2000/12/19 02:59:23 tsubai Exp $ */
+/* $NetBSD: ams.c,v 1.11 2000/12/19 03:13:40 tsubai Exp $ */
/*
* Copyright (C) 1998 Colin Wood
@@ -79,7 +79,7 @@
struct cfdata *cf;
void *aux;
{
- struct adb_attach_args * aa_args = (struct adb_attach_args *)aux;
+ struct adb_attach_args *aa_args = aux;
if (aa_args->origaddr == ADBADDR_MS)
return 1;
@@ -94,7 +94,7 @@
{
ADBSetInfoBlock adbinfo;
struct ams_softc *sc = (struct ams_softc *)self;
- struct adb_attach_args * aa_args = (struct adb_attach_args *)aux;
+ struct adb_attach_args *aa_args = aux;
int error;
struct wsmousedev_attach_args a;
@@ -264,6 +264,7 @@
adb_op_sync((Ptr)buffer, (Ptr)0, (Ptr)0, ADBFLUSH(adbaddr));
adb_op_sync((Ptr)data2, (Ptr)0, (Ptr)0, ADBLISTEN(adbaddr, 2));
+ return;
}
if ((sc->handler_id == ADBMS_100DPI) ||
(sc->handler_id == ADBMS_200DPI)) {
Home |
Main Index |
Thread Index |
Old Index