All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers/acpi: Remove unnecessary cast
@ 2010-01-08 18:12 H Hartley Sweeten
  2010-01-16  4:06 ` Len Brown
  0 siblings, 1 reply; 2+ messages in thread
From: H Hartley Sweeten @ 2010-01-08 18:12 UTC (permalink / raw)
  To: Linux Kernel, linux-acpi; +Cc: rui.zhang, lenb

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.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Zhang Rui <rui.zhang@intel.com>
Cc: Len Brown <lenb@kernel.org>

---

diff --git a/drivers/acpi/processor_thermal.c b/drivers/acpi/processor_thermal.c
index 140c5c5..6deafb4 100644
--- a/drivers/acpi/processor_thermal.c
+++ b/drivers/acpi/processor_thermal.c
@@ -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;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drivers/acpi: Remove unnecessary cast
  2010-01-08 18:12 [PATCH] drivers/acpi: Remove unnecessary cast H Hartley Sweeten
@ 2010-01-16  4:06 ` Len Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Len Brown @ 2010-01-16  4:06 UTC (permalink / raw)
  To: H Hartley Sweeten; +Cc: Linux Kernel, linux-acpi, rui.zhang

applied

thanks,
Len Brown, Intel Open Source Technology Center


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-01-16  4:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-08 18:12 [PATCH] drivers/acpi: Remove unnecessary cast H Hartley Sweeten
2010-01-16  4:06 ` Len Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.