backlight: do not claim that ID_BACKLIGHT_CLAMP= property is not set

This commit is contained in:
Yu Watanabe 2020-09-11 17:44:20 +09:00
parent ea2bc25762
commit 06d98bdc81
1 changed files with 2 additions and 1 deletions

View File

@ -309,7 +309,8 @@ static bool shall_clamp(sd_device *d) {
r = sd_device_get_property_value(d, "ID_BACKLIGHT_CLAMP", &s);
if (r < 0) {
log_device_debug_errno(d, r, "Failed to get ID_BACKLIGHT_CLAMP property, ignoring: %m");
if (r != -ENOENT)
log_device_debug_errno(d, r, "Failed to get ID_BACKLIGHT_CLAMP property, ignoring: %m");
return true;
}