mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	ACPI / dock: Fix acpi_bus_get_device() check in drivers/acpi/dock.c
acpi_bus_get_device() returns int not acpi_status. The patch change not to apply ACPI_SUCCESS() to the return value of acpi_bus_get_device(). Signed-off-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
		
							parent
							
								
									456de893ea
								
							
						
					
					
						commit
						02df7349d2
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -825,7 +825,7 @@ static ssize_t show_docked(struct device *dev,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	struct dock_station *dock_station = dev->platform_data;
 | 
						struct dock_station *dock_station = dev->platform_data;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (ACPI_SUCCESS(acpi_bus_get_device(dock_station->handle, &tmp)))
 | 
						if (!acpi_bus_get_device(dock_station->handle, &tmp))
 | 
				
			||||||
		return snprintf(buf, PAGE_SIZE, "1\n");
 | 
							return snprintf(buf, PAGE_SIZE, "1\n");
 | 
				
			||||||
	return snprintf(buf, PAGE_SIZE, "0\n");
 | 
						return snprintf(buf, PAGE_SIZE, "0\n");
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue