浏览代码

mce, amd: Remove goto in threshold_create_device()

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>
Robert Richter 14 年之前
父节点
当前提交
0a17941e71
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      arch/x86/kernel/cpu/mcheck/mce_amd.c

+ 2 - 2
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;
 }