PERFORCE change 125025 for review
Rui Paulo
rpaulo at FreeBSD.org
Fri Aug 10 16:13:16 PDT 2007
http://perforce.freebsd.org/chv.cgi?CH=125025
Change 125025 by rpaulo at 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));
}
More information about the p4-projects
mailing list