diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2008-09-18 09:06:28 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2008-09-18 09:06:28 +0000 |
commit | 85d87724c427bff5ccbd6cef58b3cdaffe171053 (patch) | |
tree | ec97bb793655f3ae3835844d0716497af9c3f751 /sys/dev/pci | |
parent | bb6516b05049f5f0abe5feb8963942df6c8b8373 (diff) |
fix potential use of uninitialized value
Found by LLVM/Clang Static Analyzer.
ok claudio@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/musycc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/musycc.c b/sys/dev/pci/musycc.c index caed3ebeeae..122539adcdf 100644 --- a/sys/dev/pci/musycc.c +++ b/sys/dev/pci/musycc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: musycc.c,v 1.18 2007/11/26 09:28:33 martynas Exp $ */ +/* $OpenBSD: musycc.c,v 1.19 2008/09/18 09:06:27 chl Exp $ */ /* * Copyright (c) 2004,2005 Internet Business Solutions AG, Zurich, Switzerland @@ -596,7 +596,7 @@ musycc_activate_channel(struct musycc_group *mg, int chan) void musycc_stop_channel(struct channel_softc *cc) { - struct musycc_group *mg; + struct musycc_group *mg = cc->cc_group; if (cc->cc_state == CHAN_FLOAT) { /* impossible */ @@ -607,7 +607,6 @@ musycc_stop_channel(struct channel_softc *cc) return; } - mg = cc->cc_group; ACCOOM_PRINTF(2, ("%s: musycc_stop_channel\n", cc->cc_ifp->if_xname)); musycc_sreq(mg, cc->cc_channel, MUSYCC_SREQ_SET(9), MUSYCC_SREQ_BOTH, EV_STOP); |