summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmatthew <jmatthew@openbsd.org>2019-05-15 06:56:36 +0000
committerjmatthew <jmatthew@openbsd.org>2019-05-15 06:56:36 +0000
commitbcd11125f230fb7f947185dbaee752f4b937ca20 (patch)
treeb1cfa6629a15e2151d4b3bf443084bf5f4218d74
parentRework tx path to allow using up to 13 segments per packet, so we don't (diff)
downloadwireguard-openbsd-bcd11125f230fb7f947185dbaee752f4b937ca20.tar.xz
wireguard-openbsd-bcd11125f230fb7f947185dbaee752f4b937ca20.zip
remove some use of uninitialized values pointed out by jsg@
-rw-r--r--sys/dev/pci/if_mcx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_mcx.c b/sys/dev/pci/if_mcx.c
index 0e8b56eb552..a6b5d92445c 100644
--- a/sys/dev/pci/if_mcx.c
+++ b/sys/dev/pci/if_mcx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mcx.c,v 1.6 2019/05/15 06:54:10 jmatthew Exp $ */
+/* $OpenBSD: if_mcx.c,v 1.7 2019/05/15 06:56:36 jmatthew Exp $ */
/*
* Copyright (c) 2017 David Gwynne <dlg@openbsd.org>
@@ -2865,7 +2865,7 @@ mcx_hca_max_caps(struct mcx_softc *sc)
struct mcx_cmd_query_hca_cap_in *in;
struct mcx_cmd_query_hca_cap_out *out;
struct mcx_cmdq_mailbox *mb;
- struct mcx_cap_device *hca = mcx_cq_mbox_data(mb);
+ struct mcx_cap_device *hca;
uint8_t status;
uint8_t token = mcx_cmdq_token(sc);
int error;
@@ -2937,7 +2937,7 @@ mcx_hca_set_caps(struct mcx_softc *sc)
struct mcx_cmd_query_hca_cap_in *in;
struct mcx_cmd_query_hca_cap_out *out;
struct mcx_cmdq_mailbox *mb;
- struct mcx_cap_device *hca = mcx_cq_mbox_data(mb);
+ struct mcx_cap_device *hca;
uint8_t status;
uint8_t token = mcx_cmdq_token(sc);
int error;