From 650a9e60399a416b2924dbc3ce472b9dbea7fb45 Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 5 Jul 2007 07:46:33 +0000 Subject: Quiet framelen uninitialized warning. I think it was a false alarm. If check_fhdr() returns false, the frame_ok variable should protect any meaningful evaluations of framelen. Approved by: re (rwatson) --- sys/dev/sbni/if_sbni.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/dev/sbni/if_sbni.c b/sys/dev/sbni/if_sbni.c index 3e1296f..4f881dc 100644 --- a/sys/dev/sbni/if_sbni.c +++ b/sys/dev/sbni/if_sbni.c @@ -412,8 +412,10 @@ recv_frame(struct sbni_softc *sc) skip_tail(sc, framelen, crc); if (frame_ok) interpret_ack(sc, ack); - } else + } else { + framelen = 0; frame_ok = 0; + } sbni_outb(sc, CSR0, sbni_inb(sc, CSR0) ^ CT_ZER); if (frame_ok) { -- cgit v1.1