PERFORCE change 124494 for review
Constantine A. Murenin
cnst at FreeBSD.org
Wed Aug 1 15:20:31 PDT 2007
http://perforce.freebsd.org/chv.cgi?CH=124494
Change 124494 by cnst at dale on 2007/08/01 22:19:48
better error handling, although lm_detach() always returns 0,
so this doesn't matter that much
Affected files ...
.. //depot/projects/soc2007/cnst-sensors/sys.dev.lm/lm78_isa.c#4 edit
Differences ...
==== //depot/projects/soc2007/cnst-sensors/sys.dev.lm/lm78_isa.c#4 (text+ko) ====
@@ -1,4 +1,4 @@
-/* $P4: //depot/projects/soc2007/cnst-sensors/sys.dev.lm/lm78_isa.c#3 $ */
+/* $P4: //depot/projects/soc2007/cnst-sensors/sys.dev.lm/lm78_isa.c#4 $ */
/* $FreeBSD$ */
/* $OpenBSD: lm78_isa.c,v 1.2 2007/07/01 21:48:57 cnst Exp $ */
@@ -232,10 +232,12 @@
/* Bus-independent detachment */
error = lm_detach(&sc->sc_lmsc);
+ if (error)
+ return (error);
bus_space_unmap(sc->sc_iot, sc->sc_ioh, 8);
- return (error);
+ return (0);
}
u_int8_t
More information about the p4-projects
mailing list