diff options
author | Tobias Klauser <tklauser@nuerscht.ch> | 2006-04-10 19:20:12 +0200 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2006-04-18 17:24:52 -0500 |
commit | 3aee086bd3ecce968283798ce4a73966c7ed44e3 (patch) | |
tree | f2c447e50562dbd972a9eafe0b3f028b8cf16dc1 /arch/i386/kernel/cpu/cpufreq/powernow-k8.c | |
parent | 7b14dedd1fe72f33e128ed1b0cbf96d06acc7e9c (diff) | |
download | lwn-3aee086bd3ecce968283798ce4a73966c7ed44e3.tar.gz lwn-3aee086bd3ecce968283798ce4a73966c7ed44e3.zip |
[CPUFREQ] Remove duplicate check in powernow-k8
Remove a duplicate NULL pointer check introduced by commit
4211a30349e8d2b724cfb4ce2584604f5e59c299
Signed-off-by: Tobias Klauser <tklauser@nuerscht.ch>
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'arch/i386/kernel/cpu/cpufreq/powernow-k8.c')
-rw-r--r-- | arch/i386/kernel/cpu/cpufreq/powernow-k8.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/i386/kernel/cpu/cpufreq/powernow-k8.c b/arch/i386/kernel/cpu/cpufreq/powernow-k8.c index 7c0e160a2145..30bb6fd5b2b2 100644 --- a/arch/i386/kernel/cpu/cpufreq/powernow-k8.c +++ b/arch/i386/kernel/cpu/cpufreq/powernow-k8.c @@ -1109,9 +1109,6 @@ static unsigned int powernowk8_get (unsigned int cpu) if (!data) return -EINVAL; - if (!data) - return -EINVAL; - set_cpus_allowed(current, cpumask_of_cpu(cpu)); if (smp_processor_id() != cpu) { printk(KERN_ERR PFX "limiting to CPU %d failed in powernowk8_get\n", cpu); |