Date: Fri, 10 Aug 2007 23:13:08 GMT From: Rui Paulo <rpaulo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 125025 for review Message-ID: <200708102313.l7AND8Hm003354@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=125025 Change 125025 by rpaulo@rpaulo_epsilon on 2007/08/10 23:12:08 Style fixes. Pointed out by: des Affected files ... .. //depot/projects/soc2007/rpaulo-macbook/dev/msrtemp/msrtemp.c#11 edit Differences ... ==== //depot/projects/soc2007/rpaulo-macbook/dev/msrtemp/msrtemp.c#11 (text+ko) ==== @@ -23,7 +23,7 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/soc2007/rpaulo-macbook/dev/msrtemp/msrtemp.c#10 $ + * $P4: //depot/projects/soc2007/rpaulo-macbook/dev/msrtemp/msrtemp.c#11 $ * */ @@ -120,11 +120,11 @@ msrtemp_probe(device_t dev) { if (resource_disabled("msrtemp", 0)) - return ENXIO; + return (ENXIO); device_set_desc(dev, "CPU On-Die Thermal Sensors"); - return BUS_PROBE_GENERIC; + return (BUS_PROBE_GENERIC); } static int @@ -159,7 +159,7 @@ dev, 0, msrtemp_get_temp_sysctl, "I", "Current temperature in degC"); - return 0; + return (0); } static int @@ -169,7 +169,7 @@ sysctl_remove_oid(sc->sc_oid, 1, 0); - return 0; + return (0); } @@ -205,10 +205,10 @@ * We use 0x7f to ignore the minus signal. */ temp = sc->sc_tjmax - ((temp >> 16) & 0x7f); - return (int) temp; + return ((int) temp); } - return -1; + return (-1); } static int @@ -219,5 +219,5 @@ temp = msrtemp_get_temp(dev); - return sysctl_handle_int(oidp, &temp, 0, req); + return (sysctl_handle_int(oidp, &temp, 0, req)); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708102313.l7AND8Hm003354>