Skip to contentSkip to conversation

s3c2410fb: silence warning

PATCH In review Arnaud Patard (Rtp) 2 participants 2 messages Mar 8, 2010 – Mar 10, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s3c2410fb: silence warning

When building s3c2410fb with CPU_FREQ set, one gets :

drivers/video/s3c2410fb.c: In function 's3c2410fb_cpufreq_transition':
drivers/video/s3c2410fb.c:769: warning: unused variable 'freqs'

Remove this useless declaration to silence the warning.

---

---
drivers/video/s3c2410fb.c | 1 0 + 1 - 0 !

 1 file changed, 1 deletion(-)
drivers/video/s3c2410fb.c +0 -1
Index: linux-2.6/drivers/video/s3c2410fb.c
===================================================================
@@ -766,7 +766,6 @@ static irqreturn_t s3c2410fb_irq(int irq
 static int s3c2410fb_cpufreq_transition(struct notifier_block *nb,
 					unsigned long val, void *data)
 {
-	struct cpufreq_freqs *freqs = data;
 	struct s3c2410fb_info *info;
 	struct fb_info *fbinfo;
 	long delta_f;
#1 lore raw

Can you please resend it not as a attachemnt. Thank you.

Quoted 12 lines

When building s3c2410fb with CPU_FREQ set, one gets :

drivers/video/s3c2410fb.c: In function 's3c2410fb_cpufreq_transition':
drivers/video/s3c2410fb.c:769: warning: unused variable 'freqs'

Remove this useless declaration to silence the warning.

---