Skip to contentSkip to conversation

drivers/acpi: Remove unnecessary cast

PATCH Applied H Hartley Sweeten 2 participants 2 messages Jan 8, 2010 – Jan 16, 2010

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

PATCH 1/1 drivers/acpi: Remove unnecessary cast

drivers/acpi: Remove unnecessary cast.

The struct seq_file 'private' member is a void *, the cast is not needed. Also, remove an extra whitespace line.

---

drivers/acpi/processor_thermal.c +1 -2
index 140c5c5..6deafb4 100644
@@ -443,8 +443,7 @@ struct thermal_cooling_device_ops processor_cooling_ops = {
 #ifdef CONFIG_ACPI_PROCFS
 static int acpi_processor_limit_seq_show(struct seq_file *seq, void *offset)
 {
-	struct acpi_processor *pr = (struct acpi_processor *)seq->private;
-
+	struct acpi_processor *pr = seq->private;
 
 	if (!pr)
 		goto end;
reviewer Applied
#1 lore raw

applied

thanks,
Len Brown, Intel Open Source Technology Center