summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2009-07-16 13:11:16 +0200
committerRobert Richter <robert.richter@amd.com>2009-07-20 16:43:22 +0200
commitc550091edd6fac2ed9dac1b30d986b6c58b216fa (patch)
tree2c83a70364321b929a1e79e0938d7b1287a3062c /arch/x86
parent11be1a7b54283021777f409aa983ce125945e67c (diff)
downloadop-kernel-dev-c550091edd6fac2ed9dac1b30d986b6c58b216fa.zip
op-kernel-dev-c550091edd6fac2ed9dac1b30d986b6c58b216fa.tar.gz
x86/oprofile: Small coding style fixes
Some small coding style fixes. Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/oprofile/op_model_amd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/oprofile/op_model_amd.c b/arch/x86/oprofile/op_model_amd.c
index 1ea1982..827beec 100644
--- a/arch/x86/oprofile/op_model_amd.c
+++ b/arch/x86/oprofile/op_model_amd.c
@@ -144,11 +144,10 @@ static void op_amd_setup_ctrs(struct op_x86_model_spec const *model,
/* setup reset_value */
for (i = 0; i < NUM_VIRT_COUNTERS; ++i) {
- if (counter_config[i].enabled) {
+ if (counter_config[i].enabled)
reset_value[i] = counter_config[i].count;
- } else {
+ else
reset_value[i] = 0;
- }
}
/* clear all counters */
OpenPOWER on IntegriCloud