Commit 754fc182 authored by Haowen Bai's avatar Haowen Bai Committed by Alex Deucher

drm/amd/display: Remove useless code

aux_rep only memset but no use at all, so we drop it.
Signed-off-by: default avatarHaowen Bai <baihaowen@meizu.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 4020c228
...@@ -565,13 +565,11 @@ int dce_aux_transfer_raw(struct ddc_service *ddc, ...@@ -565,13 +565,11 @@ int dce_aux_transfer_raw(struct ddc_service *ddc,
struct ddc *ddc_pin = ddc->ddc_pin; struct ddc *ddc_pin = ddc->ddc_pin;
struct dce_aux *aux_engine; struct dce_aux *aux_engine;
struct aux_request_transaction_data aux_req; struct aux_request_transaction_data aux_req;
struct aux_reply_transaction_data aux_rep;
uint8_t returned_bytes = 0; uint8_t returned_bytes = 0;
int res = -1; int res = -1;
uint32_t status; uint32_t status;
memset(&aux_req, 0, sizeof(aux_req)); memset(&aux_req, 0, sizeof(aux_req));
memset(&aux_rep, 0, sizeof(aux_rep));
aux_engine = ddc->ctx->dc->res_pool->engines[ddc_pin->pin_data->en]; aux_engine = ddc->ctx->dc->res_pool->engines[ddc_pin->pin_data->en];
if (!acquire(aux_engine, ddc_pin)) { if (!acquire(aux_engine, ddc_pin)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment