Skip to contentSkip to conversation

i386: Remove duplicate code

PATCH New Tobias Klauser 1 participant 1 message Apr 10, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i386: Remove duplicate code

Remove a duplicate NULL pointer check introduced by commit 4211a30349e8d2b724cfb4ce2584604f5e59c299

---

 arch/i386/kernel/cpu/cpufreq/powernow-k8.c |    3 ---
 1 file changed, 3 deletions(-)
arch/i386/kernel/cpu/cpufreq/powernow-k8.c +0 -3
index 7c0e160..30bb6fd 100644
@@ -1109,9 +1109,6 @@ static unsigned int powernowk8_get (unsi
 	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);