Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Remove unnecessary variable bc
details: https://anonhg.NetBSD.org/src/rev/4f0b7edc7959
branches: trunk
changeset: 805320:4f0b7edc7959
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Mon Dec 29 13:38:13 2014 +0000
description:
Remove unnecessary variable bc
diffstat:
sys/net/bpf.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (38 lines):
diff -r 230a82f1f6e8 -r 4f0b7edc7959 sys/net/bpf.c
--- a/sys/net/bpf.c Mon Dec 29 13:13:20 2014 +0000
+++ b/sys/net/bpf.c Mon Dec 29 13:38:13 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bpf.c,v 1.189 2014/09/13 17:18:45 rmind Exp $ */
+/* $NetBSD: bpf.c,v 1.190 2014/12/29 13:38:13 ozaki-r Exp $ */
/*
* Copyright (c) 1990, 1991, 1993
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bpf.c,v 1.189 2014/09/13 17:18:45 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bpf.c,v 1.190 2014/12/29 13:38:13 ozaki-r Exp $");
#if defined(_KERNEL_OPT)
#include "opt_bpf.h"
@@ -1388,7 +1388,6 @@
bpf_deliver(struct bpf_if *bp, void *(*cpfn)(void *, const void *, size_t),
void *pkt, u_int pktlen, u_int buflen, const bool rcv)
{
- const bpf_ctx_t *bc = NULL;
uint32_t mem[BPF_MEMWORDS];
bpf_args_t args = {
.pkt = (const uint8_t *)pkt,
@@ -1415,9 +1414,9 @@
bpf_gstats.bs_recv++;
if (d->bd_jitcode)
- slen = d->bd_jitcode(bc, &args);
+ slen = d->bd_jitcode(NULL, &args);
else
- slen = bpf_filter_ext(bc, d->bd_filter, &args);
+ slen = bpf_filter_ext(NULL, d->bd_filter, &args);
if (!slen) {
continue;
Home |
Main Index |
Thread Index |
Old Index