x86, microcode, intel: Drop unused parameter
authorBorislav Petkov <bp@suse.de>
Mon, 1 Dec 2014 16:50:16 +0000 (17:50 +0100)
committerBorislav Petkov <bp@suse.de>
Sat, 6 Dec 2014 11:58:56 +0000 (12:58 +0100)
apply_microcode_early() doesn't use mc_saved_data, kill it.

Signed-off-by: Borislav Petkov <bp@suse.de>
arch/x86/kernel/cpu/microcode/intel_early.c

index b88343f7a3b321f04a1ca03db587b43051aeba89..31e7576a123cfa4e14f43a48c70ac0c2d4c03583 100644 (file)
@@ -650,8 +650,7 @@ static inline void print_ucode(struct ucode_cpu_info *uci)
 }
 #endif
 
-static int apply_microcode_early(struct mc_saved_data *mc_saved_data,
-                                struct ucode_cpu_info *uci)
+static int apply_microcode_early(struct ucode_cpu_info *uci)
 {
        struct microcode_intel *mc_intel;
        unsigned int val[2];
@@ -720,7 +719,7 @@ _load_ucode_intel_bsp(struct mc_saved_data *mc_saved_data,
                       mc_saved_in_initrd, uci);
        load_microcode(mc_saved_data, mc_saved_in_initrd,
                       initrd_start_early, uci);
-       apply_microcode_early(mc_saved_data, uci);
+       apply_microcode_early(uci);
 }
 
 void __init
@@ -783,5 +782,5 @@ void load_ucode_intel_ap(void)
        collect_cpu_info_early(&uci);
        load_microcode(mc_saved_data_p, mc_saved_in_initrd_p,
                       initrd_start_addr, &uci);
-       apply_microcode_early(mc_saved_data_p, &uci);
+       apply_microcode_early(&uci);
 }