projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbaff08
)
mce, amd: Remove goto in threshold_create_device()
author
Robert Richter
<robert.richter@amd.com>
Mon, 25 Oct 2010 14:03:38 +0000
(16:03 +0200)
committer
Ingo Molnar
<mingo@elte.hu>
Mon, 25 Oct 2010 16:59:43 +0000
(18:59 +0200)
Removing the goto in threshold_create_device().
Signed-off-by: Robert Richter <robert.richter@amd.com>
Acked-by: Borislav Petkov <borislav.petkov@amd.com>
LKML-Reference: <
1288015419
-29543-5-git-send-email-robert.richter@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/mcheck/mce_amd.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/cpu/mcheck/mce_amd.c
b/arch/x86/kernel/cpu/mcheck/mce_amd.c
index e316684f9ed7d64950340251750ae9278ad94092..5bf2fac52aca7771b6b7827117b9d2b2778fd8ad 100644
(file)
--- 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;
}