mirror of
https://github.com/systemd/systemd.git
synced 2026-07-12 18:44:14 +00:00
The old code was just fine, but gcc doesn't understand that max_brightness is initialized. Let's rework it a bit to move some logic to the main function. Now get_max_brightness() just retrieves and parses the attribute, and the main function decides what to do with it.