Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Remove unnecessary casts against void pointers.



details:   https://anonhg.NetBSD.org/src/rev/2f6c676a603c
branches:  trunk
changeset: 747196:2f6c676a603c
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Sep 05 12:39:25 2009 +0000

description:
Remove unnecessary casts against void pointers.

diffstat:

 sys/dev/ic/aic79xx_inline.h |   4 ++--
 sys/dev/ic/aic79xx_osm.c    |  14 +++++++-------
 2 files changed, 9 insertions(+), 9 deletions(-)

diffs (74 lines):

diff -r eb3723e32477 -r 2f6c676a603c sys/dev/ic/aic79xx_inline.h
--- a/sys/dev/ic/aic79xx_inline.h       Sat Sep 05 12:30:59 2009 +0000
+++ b/sys/dev/ic/aic79xx_inline.h       Sat Sep 05 12:39:25 2009 +0000
@@ -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) {
diff -r eb3723e32477 -r 2f6c676a603c sys/dev/ic/aic79xx_osm.c
--- a/sys/dev/ic/aic79xx_osm.c  Sat Sep 05 12:30:59 2009 +0000
+++ b/sys/dev/ic/aic79xx_osm.c  Sat Sep 05 12:39:25 2009 +0000
@@ -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));
 



Home | Main Index | Thread Index | Old Index