]> git.baikalelectronics.ru Git - kernel.git/commitdiff
amdgpu/dc: remove redundant assignment to variable 'option'
authorColin Ian King <colin.king@canonical.com>
Fri, 24 Apr 2020 11:12:26 +0000 (12:12 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 Apr 2020 15:42:11 +0000 (11:42 -0400)
The variable option is being initialized with a value that is
never read and it is being updated later with a new value.  The
initialization is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce110/dce110_opp_csc_v.c

index 4245e1f818a3d0d84138e3edd33a7c4d4a9d887d..e096d2b95ef9d49233333e7cff52ccab43de4162 100644 (file)
@@ -679,8 +679,7 @@ void dce110_opp_v_set_csc_default(
        if (default_adjust->force_hw_default == false) {
                const struct out_csc_color_matrix *elm;
                /* currently parameter not in use */
-               enum grph_color_adjust_option option =
-                       GRPH_COLOR_MATRIX_HW_DEFAULT;
+               enum grph_color_adjust_option option;
                uint32_t i;
                /*
                 * HW default false we program locally defined matrix