summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Matthew <jmatthew@cvs.openbsd.org>2019-05-15 06:56:37 +0000
committerJonathan Matthew <jmatthew@cvs.openbsd.org>2019-05-15 06:56:37 +0000
commit6e9681acd4a16de061802e7690d2768e4ae08bad (patch)
treeaeda04a5ae6dd86582e7d25986ac92fe00d57745 /sys/dev
parentc19c2cad6a357cbdaf3269d2caf700e2fdeadcbf (diff)
remove some use of uninitialized values pointed out by jsg@
Diffstat (limited to 'sys/dev')
-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;