From b3b1ff3b297878425f823c8cdb27ed13470078dd Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Tue, 25 Oct 2011 15:48:07 +0000 Subject: Initialize variables before use. And if initializing, use the correct source! From Pedro Martelletto. --- sys/dev/ic/uha.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/ic') diff --git a/sys/dev/ic/uha.c b/sys/dev/ic/uha.c index 2b511d86d0a..4a0a8e4d582 100644 --- a/sys/dev/ic/uha.c +++ b/sys/dev/ic/uha.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uha.c,v 1.22 2011/04/03 12:42:36 krw Exp $ */ +/* $OpenBSD: uha.c,v 1.23 2011/10/25 15:48:06 krw Exp $ */ /* $NetBSD: uha.c,v 1.3 1996/10/13 01:37:29 christos Exp $ */ #undef UHADEBUG @@ -166,8 +166,8 @@ void uha_mscp_free(xsc, xmscp) void *xsc, *xmscp; { - struct uha_softc *sc = xmscp; - struct uha_mscp *mscp; + struct uha_softc *sc = xsc; + struct uha_mscp *mscp = xmscp; uha_reset_mscp(sc, mscp); -- cgit v1.2.3