Ver Fonte

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>
Signed-off-by: Len Brown <len.brown@intel.com>
H Hartley Sweeten há 15 anos atrás
pai
commit
070a24f4d2
1 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 2
      drivers/acpi/processor_thermal.c

+ 1 - 2
drivers/acpi/processor_thermal.c

@@ -443,8 +443,7 @@ struct thermal_cooling_device_ops processor_cooling_ops = {
 #ifdef CONFIG_ACPI_PROCFS
 #ifdef CONFIG_ACPI_PROCFS
 static int acpi_processor_limit_seq_show(struct seq_file *seq, void *offset)
 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)
 	if (!pr)
 		goto end;
 		goto end;