backlight: do not claim that ID_BACKLIGHT_CLAMP= property is not set
This commit is contained in:
parent
ea2bc25762
commit
06d98bdc81
|
@ -309,6 +309,7 @@ static bool shall_clamp(sd_device *d) {
|
||||||
|
|
||||||
r = sd_device_get_property_value(d, "ID_BACKLIGHT_CLAMP", &s);
|
r = sd_device_get_property_value(d, "ID_BACKLIGHT_CLAMP", &s);
|
||||||
if (r < 0) {
|
if (r < 0) {
|
||||||
|
if (r != -ENOENT)
|
||||||
log_device_debug_errno(d, r, "Failed to get ID_BACKLIGHT_CLAMP property, ignoring: %m");
|
log_device_debug_errno(d, r, "Failed to get ID_BACKLIGHT_CLAMP property, ignoring: %m");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue