Page MenuHomeFreeBSD

D35624.diff
No OneTemporary

D35624.diff

diff --git a/sys/dev/wtap/if_wtap.c b/sys/dev/wtap/if_wtap.c
--- a/sys/dev/wtap/if_wtap.c
+++ b/sys/dev/wtap/if_wtap.c
@@ -446,7 +446,6 @@
struct ieee80211com *ic = &sc->sc_ic;
struct mbuf *m;
struct ieee80211_node *ni;
- int type;
struct wtap_buf *bf;
#if 0
@@ -487,10 +486,10 @@
/*
* Sending station is known, dispatch directly.
*/
- type = ieee80211_input(ni, m, 1<<7, 10);
+ ieee80211_input(ni, m, 1<<7, 10);
ieee80211_free_node(ni);
} else {
- type = ieee80211_input_all(ic, m, 1<<7, 10);
+ ieee80211_input_all(ic, m, 1<<7, 10);
}
NET_EPOCH_EXIT(et);
diff --git a/sys/dev/wtap/if_wtap_module.c b/sys/dev/wtap/if_wtap_module.c
--- a/sys/dev/wtap/if_wtap_module.c
+++ b/sys/dev/wtap/if_wtap_module.c
@@ -143,7 +143,6 @@
GID_WHEEL,0600,(const char *)"wtapctl");
hal = (struct wtap_hal *)malloc(sizeof(struct wtap_hal),
M_WTAP, M_NOWAIT | M_ZERO);
- bzero(hal, sizeof(struct wtap_hal));
init_hal(hal);
diff --git a/sys/dev/wtap/wtap_hal/hal.c b/sys/dev/wtap/wtap_hal/hal.c
--- a/sys/dev/wtap/wtap_hal/hal.c
+++ b/sys/dev/wtap/wtap_hal/hal.c
@@ -69,7 +69,6 @@
hal->hal_md = (struct wtap_medium *)malloc(sizeof(struct wtap_medium),
M_WTAP, M_NOWAIT | M_ZERO);
- bzero(hal->hal_md, sizeof(struct wtap_medium));
init_medium(hal->hal_md);
/* register event handler for packets */
@@ -181,7 +180,6 @@
hal->hal_devs[id] = (struct wtap_softc *)malloc(
sizeof(struct wtap_softc), M_WTAP, M_NOWAIT | M_ZERO);
- bzero(hal->hal_devs[id], sizeof(struct wtap_softc));
hal->hal_devs[id]->sc_md = hal->hal_md;
hal->hal_devs[id]->id = id;
snprintf(hal->hal_devs[id]->name, sizeof(hal->hal_devs[id]->name),

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 28, 12:37 AM (7 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15618988
Default Alt Text
D35624.diff (1 KB)

Event Timeline