diff options
| author | Giedrius Statkevičius <[email protected]> | 2016-04-16 03:27:12 +0300 |
|---|---|---|
| committer | Darren Hart <[email protected]> | 2016-04-25 10:39:58 -0700 |
| commit | 198b618ab118c7d856278a985de1ed0eff77c02f (patch) | |
| tree | 4bd46856f0ce8791ca9c8b55d929ab09a7de21ac /scripts/gdb/linux/cpus.py | |
| parent | 4f62568c1fcf0f7da49e7c22bdd01645aa508e80 (diff) | |
asus-laptop: correct error handling in asus_read_brightness()
It is possible that acpi_evaluate_integer might fail and value would not be
set to any value so correct this defect by returning 0 in case of an
error. This is also the correct thing to return because the backlight
subsystem will print the old value of brightness in this case.
Signed-off-by: Giedrius Statkevičius <[email protected]>
Signed-off-by: Darren Hart <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/cpus.py')
0 files changed, 0 insertions, 0 deletions