summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2009-08-17 13:07:38 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2009-08-17 13:07:38 +0000
commit66897d65ce3cb1886f1f5190e87599dae60ce871 (patch)
treeea8b9591125bebad32c2ae20aedb98e1b008cd7d /sys
parenta447abb40f9d13c3b5a598e3035edd319769d806 (diff)
initialize retry to zero; otherwise if firmware sends odd val16
from the very beginning; we might never retry. ok mglocker@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pcmcia/if_malo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pcmcia/if_malo.c b/sys/dev/pcmcia/if_malo.c
index 276bbbcdee5..92aa4ee5aa4 100644
--- a/sys/dev/pcmcia/if_malo.c
+++ b/sys/dev/pcmcia/if_malo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_malo.c,v 1.65 2009/03/29 21:53:53 sthen Exp $ */
+/* $OpenBSD: if_malo.c,v 1.66 2009/08/17 13:07:37 martynas Exp $ */
/*
* Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org>
@@ -544,7 +544,7 @@ int
cmalo_fw_load_main(struct malo_softc *sc)
{
uint16_t val16, bsize, *uc;
- int offset, i, retry;
+ int offset, i, retry = 0;
/* verify if the helper firmware has been loaded correctly */
for (i = 0; i < 10; i++) {