summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-08-17 18:11:38 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-08-17 18:11:38 +0000
commit577e01b8ee22cf37ed2f7fe88ce68936258a8faf (patch)
treeb4b828ec14d10178dca2bbb088c2a6afe0c5c15d /sys
parent37d7aa79835db453b0e5492a4b57fbd9358b3dc7 (diff)
All callers of qli_get_fw_state() bzero the mbox memory, no need to do it
again with a wrong size. ok marco@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/qli_pci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/pci/qli_pci.c b/sys/dev/pci/qli_pci.c
index 545fdea75aa..586ce5e9692 100644
--- a/sys/dev/pci/qli_pci.c
+++ b/sys/dev/pci/qli_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qli_pci.c,v 1.13 2009/02/16 21:19:07 miod Exp $ */
+/* $OpenBSD: qli_pci.c,v 1.14 2009/08/17 18:11:37 miod Exp $ */
/*
* Copyright (c) 2007 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2007 David Collins <dave@davec.name>
@@ -504,7 +504,6 @@ qli_get_fw_state(struct qli_softc *sc, u_int32_t *mbox)
DNPRINTF(QLI_D_MISC, "%s: qli_get_fw_state\n", DEVNAME(sc));
- bzero(mbox, sizeof(mbox));
mbox[0] = QLI_MBOX_OPC_GET_FW_STATE;
if (qli_mgmt(sc, 1, mbox))
goto done;