mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
(Linux/sysfs) Don't need to iterate ac_adapter
This commit is contained in:
parent
270ec2403c
commit
71c54c607c
@ -1339,8 +1339,7 @@ static bool frontend_linux_powerstate_check_acpi_sysfs(enum frontend_powerstate
|
||||
if (!entry)
|
||||
goto error;
|
||||
|
||||
while (retro_readdir(entry))
|
||||
check_proc_acpi_sysfs_ac_adapter(retro_dirent_get_name(entry), &have_ac);
|
||||
check_proc_acpi_sysfs_ac_adapter(retro_dirent_get_name(entry), &have_ac);
|
||||
|
||||
if (!have_battery)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user