The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] i386: Remove duplicate code
@ 2006-04-10 17:20 Tobias Klauser
  0 siblings, 0 replies; only message in thread
From: Tobias Klauser @ 2006-04-10 17:20 UTC (permalink / raw)
  To: linux-kernel; +Cc: davej, akpm

Remove a duplicate NULL pointer check introduced by commit
4211a30349e8d2b724cfb4ce2584604f5e59c299

Signed-off-by: Tobias Klauser <tklauser@nuerscht.ch>

---

 arch/i386/kernel/cpu/cpufreq/powernow-k8.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/arch/i386/kernel/cpu/cpufreq/powernow-k8.c b/arch/i386/kernel/cpu/cpufreq/powernow-k8.c
index 7c0e160..30bb6fd 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 (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);

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2006-04-10 17:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-10 17:20 [PATCH] i386: Remove duplicate code Tobias Klauser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox