]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/colorop: Check if getting curve_1d_type default succeeds
authorJonathan Cavitt <jonathan.cavitt@intel.com>
Mon, 2 Feb 2026 21:47:10 +0000 (21:47 +0000)
committerJonathan Cavitt <jonathan.cavitt@intel.com>
Thu, 16 Apr 2026 19:11:21 +0000 (03:11 +0800)
commit51c0256409eb218b499166068f863c754a672a11
tree475effea2ba212c1d9c5a7e6a689953d04e4e3ac
parent88f059f6f6f589bd78e2ceb05a1339a8c10b8626
drm/colorop: Check if getting curve_1d_type default succeeds

Static analysis issue:

In all other uses of the function drm_object_property_get_default_value,
the return value of the function is checked before the output is saved to
the relevant object parameter.  Though likely unnecessary given the
execution path involved, keep the behavior consistent across uses and only
set colorop_state->curve_1d_type in __drm_colorop_state_reset if
drm_object_property_get_default_value succeeds.

Signed-off-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Reviewed-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
Link: https://patch.msgid.link/20260202214709.8037-2-jonathan.cavitt@intel.com
drivers/gpu/drm/drm_colorop.c