mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 16:13:40 +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…
x
Reference in New Issue
Block a user