Module Name: src
Committed By: tsutsui
Date: Sat Sep 5 12:39:25 UTC 2009
Modified Files:
src/sys/dev/ic: aic79xx_inline.h aic79xx_osm.c
Log Message:
Remove unnecessary casts against void pointers.
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/dev/ic/aic79xx_inline.h
cvs rdiff -u -r1.24 -r1.25 src/sys/dev/ic/aic79xx_osm.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/dev/ic/aic79xx_inline.h
diff -u src/sys/dev/ic/aic79xx_inline.h:1.18 src/sys/dev/ic/aic79xx_inline.h:1.19
--- src/sys/dev/ic/aic79xx_inline.h:1.18 Wed Sep 2 17:08:12 2009
+++ src/sys/dev/ic/aic79xx_inline.h Sat Sep 5 12:39:25 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: aic79xx_inline.h,v 1.18 2009/09/02 17:08:12 tsutsui Exp $ */
+/* $NetBSD: aic79xx_inline.h,v 1.19 2009/09/05 12:39:25 tsutsui Exp $ */
/*
* Inline routines shareable across OS platforms.
@@ -881,7 +881,7 @@
static __inline int
ahd_intr(void *arg)
{
- struct ahd_softc *ahd = (struct ahd_softc*)arg;
+ struct ahd_softc *ahd = arg;
u_int intstat;
if ((ahd->pause & INTEN) == 0) {
Index: src/sys/dev/ic/aic79xx_osm.c
diff -u src/sys/dev/ic/aic79xx_osm.c:1.24 src/sys/dev/ic/aic79xx_osm.c:1.25
--- src/sys/dev/ic/aic79xx_osm.c:1.24 Wed Sep 2 17:11:26 2009
+++ src/sys/dev/ic/aic79xx_osm.c Sat Sep 5 12:39:25 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: aic79xx_osm.c,v 1.24 2009/09/02 17:11:26 tsutsui Exp $ */
+/* $NetBSD: aic79xx_osm.c,v 1.25 2009/09/05 12:39:25 tsutsui Exp $ */
/*
* Bus independent NetBSD shim for the aic7xxx based adaptec SCSI controllers
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aic79xx_osm.c,v 1.24 2009/09/02 17:11:26 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aic79xx_osm.c,v 1.25 2009/09/05 12:39:25 tsutsui Exp $");
#include <dev/ic/aic79xx_osm.h>
#include <dev/ic/aic79xx_inline.h>
@@ -181,7 +181,7 @@
{
struct ahd_softc *ahd;
- ahd = (struct ahd_softc *)arg;
+ ahd = arg;
printf("%s; ahd_platform_intr\n", ahd_name(ahd));
@@ -532,7 +532,7 @@
u_int mask;
int s;
- scb = (struct scb*)arg;
+ scb = arg;
xs = scb->xs;
xs->error = 0;
xs->status = 0;
@@ -669,7 +669,7 @@
return (EIO);
}
- ahd_intr((void *)ahd);
+ ahd_intr(ahd);
return (0);
}
@@ -739,8 +739,8 @@
ahd_mode_state saved_modes;
int s;
- scb = (struct scb *)arg;
- ahd = (struct ahd_softc *)scb->ahd_softc;
+ scb = arg;
+ ahd = scb->ahd_softc;
printf("%s: ahd_timeout\n", ahd_name(ahd));