summaryrefslogtreecommitdiffstats
path: root/sys/amd64/amd64/bpf_jit_machdep.c
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2008-08-26 21:06:31 +0000
committerjkim <jkim@FreeBSD.org>2008-08-26 21:06:31 +0000
commite41f677c9fc357d041e7ea3fa4529dbc69aa1cef (patch)
treeca74318b1996d2c0e9fa0138b11cb52643eb9366 /sys/amd64/amd64/bpf_jit_machdep.c
parent72e5b4d25146e4f1953c050beff292b051f1ab01 (diff)
downloadFreeBSD-src-e41f677c9fc357d041e7ea3fa4529dbc69aa1cef.zip
FreeBSD-src-e41f677c9fc357d041e7ea3fa4529dbc69aa1cef.tar.gz
Move empty filter handling to MI source.
MFC after: 3 days
Diffstat (limited to 'sys/amd64/amd64/bpf_jit_machdep.c')
-rw-r--r--sys/amd64/amd64/bpf_jit_machdep.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/amd64/amd64/bpf_jit_machdep.c b/sys/amd64/amd64/bpf_jit_machdep.c
index b8de592..4991a5b 100644
--- a/sys/amd64/amd64/bpf_jit_machdep.c
+++ b/sys/amd64/amd64/bpf_jit_machdep.c
@@ -107,10 +107,6 @@ bpf_jit_compile(struct bpf_insn *prog, u_int nins, int *mem)
*/
emit_func emitm;
- /* Do not compile an empty filter. */
- if (nins == 0)
- return (NULL);
-
/* Allocate the reference table for the jumps */
#ifdef _KERNEL
stream.refs = (u_int *)malloc((nins + 1) * sizeof(u_int),
OpenPOWER on IntegriCloud