summaryrefslogtreecommitdiffstats
path: root/sys/dev/vx/if_vx_pci.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-07-01 00:45:45 +0000
committerbde <bde@FreeBSD.org>1997-07-01 00:45:45 +0000
commit8dcf4da6425f47bc89ecf48cbfb3890e31f25a97 (patch)
treea6794dd316c3256c120c250d70c790117624259c /sys/dev/vx/if_vx_pci.c
parent690047b9cbc0582b44ac9ffa57854cdf0d574baa (diff)
downloadFreeBSD-src-8dcf4da6425f47bc89ecf48cbfb3890e31f25a97.zip
FreeBSD-src-8dcf4da6425f47bc89ecf48cbfb3890e31f25a97.tar.gz
Don't cast function pointers to (void *). This will cause warnings.
They should be fixed when similar warnings for the general interrupt attach routines are fixed. Removed unused #include.
Diffstat (limited to 'sys/dev/vx/if_vx_pci.c')
-rw-r--r--sys/dev/vx/if_vx_pci.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/vx/if_vx_pci.c b/sys/dev/vx/if_vx_pci.c
index 5be83dc..b667b89 100644
--- a/sys/dev/vx/if_vx_pci.c
+++ b/sys/dev/vx/if_vx_pci.c
@@ -51,8 +51,6 @@
#include <netns/ns_if.h>
#endif
-#include <machine/clock.h>
-
#include <pci/pcivar.h>
#include <dev/vx/if_vxreg.h>
@@ -128,7 +126,7 @@ vx_pci_attach(
*/
at_shutdown(vx_pci_shutdown, sc, SHUTDOWN_POST_SYNC);
- pci_map_int(config_id, (void *) vxintr, (void *) sc, &net_imask);
+ pci_map_int(config_id, vxintr, (void *) sc, &net_imask);
}
static struct pci_device vxdevice = {
OpenPOWER on IntegriCloud