From: H. Peter Anvin Date: Mon, 14 Dec 2009 18:02:18 +0000 (-0800) Subject: x86, msr: Remove incorrect, duplicated code in the MSR driver X-Git-Tag: v2.6.33-rc1~51^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=494c2ebfb287eb10b229415063099e3700639028;p=pandora-kernel.git 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: H. Peter Anvin --- Reading git-diff-tree failed