Module Name:    src
Committed By:   pgoyette
Date:           Sun Jul 17 01:16:30 UTC 2016

Modified Files:
        src/sys/net: bpf.c

Log Message:
Don't initialize variables that no longer exist in built-in module.


To generate a diff of this commit:
cvs rdiff -u -r1.200 -r1.201 src/sys/net/bpf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/bpf.c
diff -u src/sys/net/bpf.c:1.200 src/sys/net/bpf.c:1.201
--- src/sys/net/bpf.c:1.200	Sun Jul 17 01:03:46 2016
+++ src/sys/net/bpf.c	Sun Jul 17 01:16:30 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: bpf.c,v 1.200 2016/07/17 01:03:46 pgoyette Exp $	*/
+/*	$NetBSD: bpf.c,v 1.201 2016/07/17 01:16:30 pgoyette Exp $	*/
 
 /*
  * Copyright (c) 1990, 1991, 1993
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bpf.c,v 1.200 2016/07/17 01:03:46 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bpf.c,v 1.201 2016/07/17 01:16:30 pgoyette Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_bpf.h"
@@ -2117,12 +2117,12 @@ bpf_modcmd(modcmd_t cmd, void *arg)
 #endif
 	int error;
 
-	bmajor = cmajor = NODEVMAJOR;
 
 	switch (cmd) {
 	case MODULE_CMD_INIT:
 		bpfilterattach(0);
 #ifdef _MODULE
+		bmajor = cmajor = NODEVMAJOR;
 		error = devsw_attach("bpf", NULL, &bmajor,
 		    &bpf_cdevsw, &cmajor);
 		if (error == EEXIST)

Reply via email to