[PATCH 4/5] mce, amd: Remove goto in threshold_create_device()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Robert Richter
Date: Monday, October 25, 2010 - 7:03 am

Removing the goto in threshold_create_device().

Signed-off-by: Robert Richter <robert.richter@amd.com>
---
 arch/x86/kernel/cpu/mcheck/mce_amd.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kernel/cpu/mcheck/mce_amd.c b/arch/x86/kernel/cpu/mcheck/mce_amd.c
index e316684..5bf2fac 100644
--- a/arch/x86/kernel/cpu/mcheck/mce_amd.c
+++ b/arch/x86/kernel/cpu/mcheck/mce_amd.c
@@ -622,9 +622,9 @@ static __cpuinit int threshold_create_device(unsigned int cpu)
 			continue;
 		err = threshold_create_bank(cpu, bank);
 		if (err)
-			goto out;
+			return err;
 	}
-out:
+
 	return err;
 }
 
-- 
1.7.3.1


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/5] mce, amd: code rework and cleanups, Robert Richter, (Mon Oct 25, 7:03 am)
[PATCH 4/5] mce, amd: Remove goto in threshold_create_device(), Robert Richter, (Mon Oct 25, 7:03 am)
[tip:x86/mce] mce, amd: Implement mce_threshold_block_init ..., tip-bot for Robert R ..., (Mon Oct 25, 11:44 pm)
[tip:x86/mce] mce, amd: Shorten local variables mci_misc_{ ..., tip-bot for Robert R ..., (Mon Oct 25, 11:44 pm)
[tip:x86/mce] mce, amd: Remove goto in threshold_create_de ..., tip-bot for Robert R ..., (Mon Oct 25, 11:45 pm)