Delete unnecessary casts to void *.

This commit is contained in:
dyoung 2008-05-22 00:59:19 +00:00
parent d7cef2ab29
commit 7f292b1471

View File

@ -1,4 +1,4 @@
/* $NetBSD: natm.c,v 1.15 2008/04/24 11:38:39 ad Exp $ */
/* $NetBSD: natm.c,v 1.16 2008/05/22 00:59:19 dyoung Exp $ */
/*
*
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: natm.c,v 1.15 2008/04/24 11:38:39 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: natm.c,v 1.16 2008/05/22 00:59:19 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -200,8 +200,7 @@ struct proc *p;
ATM_PH_SETVCI(&api.aph, npcb->npcb_vci);
api.rxhand = npcb;
s2 = splnet();
if (ifp->if_ioctl == NULL ||
ifp->if_ioctl(ifp, SIOCATMENA, (void *) &api) != 0) {
if (ifp->if_ioctl == NULL || ifp->if_ioctl(ifp, SIOCATMENA, &api) != 0) {
splx(s2);
npcb_free(npcb, NPCB_REMOVE);
error = EIO;
@ -232,7 +231,7 @@ struct proc *p;
api.rxhand = npcb;
s2 = splnet();
if (ifp->if_ioctl != NULL)
ifp->if_ioctl(ifp, SIOCATMDIS, (void *) &api);
ifp->if_ioctl(ifp, SIOCATMDIS, &api);
splx(s);
npcb_free(npcb, NPCB_REMOVE);
@ -301,8 +300,7 @@ struct proc *p;
}
ario.npcb = npcb;
ario.rawvalue = *((int *)nam);
error = npcb->npcb_ifp->if_ioctl(npcb->npcb_ifp,
SIOCXRAWATM, (void *) &ario);
error = npcb->npcb_ifp->if_ioctl(npcb->npcb_ifp, SIOCXRAWATM, &ario);
if (!error) {
if (ario.rawvalue)
npcb->npcb_flags |= NPCB_RAW;