summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorstsp <stsp@openbsd.org>2016-09-04 10:14:35 +0000
committerstsp <stsp@openbsd.org>2016-09-04 10:14:35 +0000
commita3a54283d07e80a67c46627172d6cd7fd8cf62ce (patch)
tree511aafa239c6e4aab4b57d9e93830992474521c4 /sys
parentGet rid of ticket support, replace "struct _spinlock" with "_atomic_lock_t". (diff)
downloadwireguard-openbsd-a3a54283d07e80a67c46627172d6cd7fd8cf62ce.tar.xz
wireguard-openbsd-a3a54283d07e80a67c46627172d6cd7fd8cf62ce.zip
Get rid of pointless iwm_mvm_time_event_send_add() wrapper.
Call iwm_mvm_send_time_event_cmd() directly instead.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_iwm.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/sys/dev/pci/if_iwm.c b/sys/dev/pci/if_iwm.c
index 2b1cae8408b..015c7395b97 100644
--- a/sys/dev/pci/if_iwm.c
+++ b/sys/dev/pci/if_iwm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwm.c,v 1.115 2016/09/03 18:04:03 stsp Exp $ */
+/* $OpenBSD: if_iwm.c,v 1.116 2016/09/04 10:14:35 stsp Exp $ */
/*
* Copyright (c) 2014, 2016 genua gmbh <info@genua.de>
@@ -289,8 +289,6 @@ void iwm_mvm_te_v2_to_v1(const struct iwm_time_event_cmd_v2 *,
struct iwm_time_event_cmd_v1 *);
int iwm_mvm_send_time_event_cmd(struct iwm_softc *,
const struct iwm_time_event_cmd_v2 *);
-int iwm_mvm_time_event_send_add(struct iwm_softc *, struct iwm_node *,
- void *, struct iwm_time_event_cmd_v2 *);
void iwm_mvm_protect_session(struct iwm_softc *, struct iwm_node *,
uint32_t, uint32_t);
int iwm_nvm_read_chunk(struct iwm_softc *, uint16_t, uint16_t, uint16_t,
@@ -2208,13 +2206,6 @@ iwm_mvm_send_time_event_cmd(struct iwm_softc *sc,
sizeof(cmd_v1), &cmd_v1);
}
-int
-iwm_mvm_time_event_send_add(struct iwm_softc *sc, struct iwm_node *in,
- void *te_data, struct iwm_time_event_cmd_v2 *te_cmd)
-{
- return iwm_mvm_send_time_event_cmd(sc, te_cmd);
-}
-
void
iwm_mvm_protect_session(struct iwm_softc *sc, struct iwm_node *in,
uint32_t duration, uint32_t max_delay)
@@ -2241,7 +2232,7 @@ iwm_mvm_protect_session(struct iwm_softc *sc, struct iwm_node *in,
IWM_TE_V2_NOTIF_HOST_EVENT_END |
IWM_T2_V2_START_IMMEDIATELY);
- iwm_mvm_time_event_send_add(sc, in, /*te_data*/NULL, &time_cmd);
+ iwm_mvm_send_time_event_cmd(sc, &time_cmd);
}
/*