No paths to apply_microcode() pass a NULL pointer, and other hooks don't
tolerate one in the first place. We can expect the core logic not to pass us
junk, so drop the checks.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
struct cpu_signature *sig = &per_cpu(cpu_sig, cpu);
uint32_t rev, old_rev = sig->rev;
- if ( !patch )
- return -ENOENT;
-
if ( microcode_fits(patch) != NEW_UCODE )
return -EINVAL;
struct cpu_signature *sig = &this_cpu(cpu_sig);
uint32_t rev, old_rev = sig->rev;
- if ( !patch )
- return -ENOENT;
-
if ( microcode_update_match(patch) != NEW_UCODE )
return -EINVAL;