summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2010-07-02 03:24:51 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2010-07-02 03:24:51 +0000
commit36597fb2fdbb69da33f67b6a87f2c8a26226f303 (patch)
tree823f95116970b207456760c1ea15dc19909f30ef /sys/dev/ic
parent060f209cc54d589b2f1b32a24d27f19eb2cb4f99 (diff)
correctly init ppr_able in reset, and some others gcc complained about.
ok deraadt
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/adwlib.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/ic/adwlib.c b/sys/dev/ic/adwlib.c
index 834bb2dd68d..92daf2b5eff 100644
--- a/sys/dev/ic/adwlib.c
+++ b/sys/dev/ic/adwlib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: adwlib.c,v 1.21 2008/06/26 05:42:15 ray Exp $ */
+/* $OpenBSD: adwlib.c,v 1.22 2010/07/02 03:24:50 tedu Exp $ */
/* $NetBSD: adwlib.c,v 1.20 2000/07/04 04:17:03 itojun Exp $ */
/*
@@ -1023,15 +1023,15 @@ AdwLoadMCode(iot, ioh, bios_mem, chip_type)
u_int16_t *bios_mem;
u_int8_t chip_type;
{
- u_int8_t *mcode_data;
- u_int32_t mcode_chksum;
- u_int16_t mcode_size;
+ u_int8_t *mcode_data = NULL;
+ u_int32_t mcode_chksum = 0;
+ u_int16_t mcode_size = 0;
u_int32_t sum;
u_int16_t code_sum;
int begin_addr;
int end_addr;
int word;
- int adw_memsize;
+ int adw_memsize = 0;
int adw_mcode_expanded_size;
int i, j;
@@ -1895,7 +1895,7 @@ ADW_SOFTC *sc;
bus_space_tag_t iot = sc->sc_iot;
bus_space_handle_t ioh = sc->sc_ioh;
int status;
- u_int16_t wdtr_able, sdtr_able, ppr_able, tagqng_able;
+ u_int16_t wdtr_able, sdtr_able, ppr_able = 0, tagqng_able;
u_int8_t tid, max_cmd[ADW_MAX_TID + 1];
u_int16_t bios_sig;