diff options
author | Borislav Petkov <bp@suse.de> | 2013-04-08 11:57:46 -0400 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2013-04-16 05:50:51 -0400 |
commit | 1077c932db63ecc571c31df1c24d4a44e30928e5 (patch) | |
tree | 19cdb8c4ce6f03a656ddba99f77cc8ed58745ed2 /arch/x86/kernel/cpu/amd.c | |
parent | 682469a5db6fade318a72406935b5000186e5643 (diff) |
x86, CPU, AMD: Drop useless label
All we want to do is return from this function so stop jumping around
like a flea for no good reason.
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: http://lkml.kernel.org/r/1365436666-9837-5-git-send-email-bp@alien8.de
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/kernel/cpu/amd.c')
-rw-r--r-- | arch/x86/kernel/cpu/amd.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index cea02d703bca..5013a48d1aff 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b/arch/x86/kernel/cpu/amd.c | |||
@@ -192,11 +192,11 @@ static void __cpuinit amd_k7_smp_check(struct cpuinfo_x86 *c) | |||
192 | /* Athlon 660/661 is valid. */ | 192 | /* Athlon 660/661 is valid. */ |
193 | if ((c->x86_model == 6) && ((c->x86_mask == 0) || | 193 | if ((c->x86_model == 6) && ((c->x86_mask == 0) || |
194 | (c->x86_mask == 1))) | 194 | (c->x86_mask == 1))) |
195 | goto valid_k7; | 195 | return; |
196 | 196 | ||
197 | /* Duron 670 is valid */ | 197 | /* Duron 670 is valid */ |
198 | if ((c->x86_model == 7) && (c->x86_mask == 0)) | 198 | if ((c->x86_model == 7) && (c->x86_mask == 0)) |
199 | goto valid_k7; | 199 | return; |
200 | 200 | ||
201 | /* | 201 | /* |
202 | * Athlon 662, Duron 671, and Athlon >model 7 have capability | 202 | * Athlon 662, Duron 671, and Athlon >model 7 have capability |
@@ -209,7 +209,7 @@ static void __cpuinit amd_k7_smp_check(struct cpuinfo_x86 *c) | |||
209 | ((c->x86_model == 7) && (c->x86_mask >= 1)) || | 209 | ((c->x86_model == 7) && (c->x86_mask >= 1)) || |
210 | (c->x86_model > 7)) | 210 | (c->x86_model > 7)) |
211 | if (cpu_has_mp) | 211 | if (cpu_has_mp) |
212 | goto valid_k7; | 212 | return; |
213 | 213 | ||
214 | /* If we get here, not a certified SMP capable AMD system. */ | 214 | /* If we get here, not a certified SMP capable AMD system. */ |
215 | 215 | ||
@@ -220,9 +220,6 @@ static void __cpuinit amd_k7_smp_check(struct cpuinfo_x86 *c) | |||
220 | WARN_ONCE(1, "WARNING: This combination of AMD" | 220 | WARN_ONCE(1, "WARNING: This combination of AMD" |
221 | " processors is not suitable for SMP.\n"); | 221 | " processors is not suitable for SMP.\n"); |
222 | add_taint(TAINT_UNSAFE_SMP, LOCKDEP_NOW_UNRELIABLE); | 222 | add_taint(TAINT_UNSAFE_SMP, LOCKDEP_NOW_UNRELIABLE); |
223 | |||
224 | valid_k7: | ||
225 | ; | ||
226 | } | 223 | } |
227 | 224 | ||
228 | static void __cpuinit init_amd_k7(struct cpuinfo_x86 *c) | 225 | static void __cpuinit init_amd_k7(struct cpuinfo_x86 *c) |