Explorar o código

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 %!s(int64=15) %!d(string=hai) anos
pai
achega
070a24f4d2
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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
 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;