diff options
author | jkim <jkim@FreeBSD.org> | 2008-08-26 21:06:31 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2008-08-26 21:06:31 +0000 |
commit | e41f677c9fc357d041e7ea3fa4529dbc69aa1cef (patch) | |
tree | ca74318b1996d2c0e9fa0138b11cb52643eb9366 /sys/amd64 | |
parent | 72e5b4d25146e4f1953c050beff292b051f1ab01 (diff) | |
download | FreeBSD-src-e41f677c9fc357d041e7ea3fa4529dbc69aa1cef.zip FreeBSD-src-e41f677c9fc357d041e7ea3fa4529dbc69aa1cef.tar.gz |
Move empty filter handling to MI source.
MFC after: 3 days
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/bpf_jit_machdep.c | 4 |
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), |