diff --git a/sys/dev/ic/aic79xx_inline.h b/sys/dev/ic/aic79xx_inline.h index 023a43a51dce..a3056033cfb4 100644 --- a/sys/dev/ic/aic79xx_inline.h +++ b/sys/dev/ic/aic79xx_inline.h @@ -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 @@ ahd_check_cmdcmpltqueues(struct ahd_softc *ahd) 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) { diff --git a/sys/dev/ic/aic79xx_osm.c b/sys/dev/ic/aic79xx_osm.c index 54487175ab27..005f451a1a0f 100644 --- a/sys/dev/ic/aic79xx_osm.c +++ b/sys/dev/ic/aic79xx_osm.c @@ -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 -__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 #include @@ -181,7 +181,7 @@ ahd_platform_intr(void *arg) { struct ahd_softc *ahd; - ahd = (struct ahd_softc *)arg; + ahd = arg; printf("%s; ahd_platform_intr\n", ahd_name(ahd)); @@ -532,7 +532,7 @@ ahd_execute_scb(void *arg, bus_dma_segment_t *dm_segs, int nsegments) u_int mask; int s; - scb = (struct scb*)arg; + scb = arg; xs = scb->xs; xs->error = 0; xs->status = 0; @@ -669,7 +669,7 @@ ahd_poll(struct ahd_softc *ahd, int wait) return (EIO); } - ahd_intr((void *)ahd); + ahd_intr(ahd); return (0); } @@ -739,8 +739,8 @@ ahd_timeout(void *arg) 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));