summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstsp <stsp@openbsd.org>2016-09-04 10:21:14 +0000
committerstsp <stsp@openbsd.org>2016-09-04 10:21:14 +0000
commit9004df2030e5a2244dfed47e3ecdeec7b95ca9e7 (patch)
treeb9ccd8c719288e5041a375773e0c0acb62d1c6f6
parentImprove the auto disk selection and also apply it for installs as well (diff)
downloadwireguard-openbsd-9004df2030e5a2244dfed47e3ecdeec7b95ca9e7.tar.xz
wireguard-openbsd-9004df2030e5a2244dfed47e3ecdeec7b95ca9e7.zip
Remove unused iwm_mvm_binding_update() wrapper function and replace the
iwm_mvm_binding_add_vif() wrapper with a direct call to iwm_mvm_binding_cmd().
-rw-r--r--sys/dev/pci/if_iwm.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/sys/dev/pci/if_iwm.c b/sys/dev/pci/if_iwm.c
index 015c7395b97..3c7e30f928d 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.116 2016/09/04 10:14:35 stsp Exp $ */
+/* $OpenBSD: if_iwm.c,v 1.117 2016/09/04 10:21:14 stsp Exp $ */
/*
* Copyright (c) 2014, 2016 genua gmbh <info@genua.de>
@@ -350,8 +350,6 @@ void iwm_mvm_rx_tx_cmd_single(struct iwm_softc *, struct iwm_rx_packet *,
void iwm_mvm_rx_tx_cmd(struct iwm_softc *, struct iwm_rx_packet *,
struct iwm_rx_data *);
int iwm_mvm_binding_cmd(struct iwm_softc *, struct iwm_node *, uint32_t);
-int iwm_mvm_binding_update(struct iwm_softc *, struct iwm_node *);
-int iwm_mvm_binding_add_vif(struct iwm_softc *, struct iwm_node *);
void iwm_mvm_phy_ctxt_cmd_hdr(struct iwm_softc *, struct iwm_mvm_phy_ctxt *,
struct iwm_phy_context_cmd *, uint32_t, uint32_t);
void iwm_mvm_phy_ctxt_cmd_data(struct iwm_softc *,
@@ -3684,18 +3682,6 @@ iwm_mvm_binding_cmd(struct iwm_softc *sc, struct iwm_node *in, uint32_t action)
return ret;
}
-int
-iwm_mvm_binding_update(struct iwm_softc *sc, struct iwm_node *in)
-{
- return iwm_mvm_binding_cmd(sc, in, IWM_FW_CTXT_ACTION_MODIFY);
-}
-
-int
-iwm_mvm_binding_add_vif(struct iwm_softc *sc, struct iwm_node *in)
-{
- return iwm_mvm_binding_cmd(sc, in, IWM_FW_CTXT_ACTION_ADD);
-}
-
/*
* Construct the generic fields of the PHY context command
*/
@@ -5589,7 +5575,7 @@ iwm_auth(struct iwm_softc *sc)
return err;
in->in_phyctxt = &sc->sc_phyctxt[0];
- err = iwm_mvm_binding_add_vif(sc, in);
+ err = iwm_mvm_binding_cmd(sc, in, IWM_FW_CTXT_ACTION_ADD);
if (err)
return err;