drm/amd/display: Removed unused variable ret
authorSouptick Joarder (HPE) <jrdr.linux@gmail.com>
Sat, 25 Jun 2022 01:41:57 +0000 (07:11 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 Jun 2022 21:10:04 +0000 (17:10 -0400)
Kernel test robot throws below warning ->

drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:
In function 'dc_link_reduce_mst_payload':
   drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:3782:32:
warning: variable 'ret' set but not used [-Wunused-but-set-variable]
    3782 |         enum act_return_status ret;

Removed the unused ret variable.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Souptick Joarder (HPE) <jrdr.linux@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c

index 1206a3d..518a63f 100644 (file)
@@ -3783,7 +3783,6 @@ enum dc_status dc_link_reduce_mst_payload(struct pipe_ctx *pipe_ctx, uint32_t bw
        struct fixed31_32 pbn_per_slot;
        struct dp_mst_stream_allocation_table proposed_table = {0};
        uint8_t i;
-       enum act_return_status ret;
        const struct link_hwss *link_hwss = get_link_hwss(link, &pipe_ctx->link_res);
        DC_LOGGER_INIT(link->ctx->logger);
 
@@ -3857,7 +3856,7 @@ enum dc_status dc_link_reduce_mst_payload(struct pipe_ctx *pipe_ctx, uint32_t bw
                        &link->mst_stream_alloc_table);
 
        /* poll for immediate branch device ACT handled */
-       ret = dm_helpers_dp_mst_poll_for_allocation_change_trigger(
+       dm_helpers_dp_mst_poll_for_allocation_change_trigger(
                        stream->ctx,
                        stream);