From: Yu Watanabe Date: Fri, 11 Sep 2020 08:44:20 +0000 (+0900) Subject: backlight: do not claim that ID_BACKLIGHT_CLAMP= property is not set X-Git-Tag: v247-rc1~256^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=06d98bdc81b233584d4b225892d358f324b7030b;p=thirdparty%2Fsystemd.git backlight: do not claim that ID_BACKLIGHT_CLAMP= property is not set --- diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c index 215b3bbfe4a..fa75b048793 100644 --- a/src/backlight/backlight.c +++ b/src/backlight/backlight.c @@ -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; }