Skip to content
Commit 494c2ebf authored by H. Peter Anvin's avatar H. Peter Anvin
Browse files

x86, msr: Remove incorrect, duplicated code in the MSR driver



The MSR driver would compute the values for cpu and c at declaration,
and then again in the body of the function.  This isn't merely
redundant, but unsafe, since cpu might not refer to a valid CPU at
that point.

Remove the unnecessary and dangerous references in the declarations.
This code now matches the equivalent code in the CPUID driver.

Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent 70fe4407
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment