diff options
Diffstat (limited to 'sys/dev/cx')
| -rw-r--r-- | sys/dev/cx/if_cx.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/sys/dev/cx/if_cx.c b/sys/dev/cx/if_cx.c index 15a0669e6b44..cd96ece1b841 100644 --- a/sys/dev/cx/if_cx.c +++ b/sys/dev/cx/if_cx.c @@ -2789,23 +2789,10 @@ static int ng_cx_disconnect (hook_p hook) static int cx_modevent (module_t mod, int type, void *unused) { - struct cdev *dev; static int load_count = 0; - struct cdevsw *cdsw; -#if __FreeBSD_version >= 502103 - dev = findcdev (makedev(CDEV_MAJOR, 0)); -#else - dev = makedev (CDEV_MAJOR, 0); -#endif switch (type) { case MOD_LOAD: - if (dev != NULL && - (cdsw = devsw (dev)) && - cdsw->d_maj == CDEV_MAJOR) { - printf ("Sigma driver is already in system\n"); - return (EEXIST); - } #if __FreeBSD_version >= 500000 && defined NETGRAPH if (ng_newtype (&typestruct)) printf ("Failed to register ng_cx\n"); |
