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
+2 -1
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;
}