Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp938451pxb; Fri, 22 Apr 2022 14:51:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzO3C6yRIY11l9bpjzGEgZtQUUWZvJokyQpgeiPCA5lylJt2OQFKxHF/gznjP8YSmUJd/X5 X-Received: by 2002:a63:135a:0:b0:3aa:2cf6:ffd7 with SMTP id 26-20020a63135a000000b003aa2cf6ffd7mr5459462pgt.351.1650664284643; Fri, 22 Apr 2022 14:51:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650664284; cv=none; d=google.com; s=arc-20160816; b=Dh1BRjfel23UKatBW8Y3O7OvyB22yY6Mbq7tVqh7Xi0QUHNsjC747ClgmpRfXwwuTm HNahPP0Kpjuf2yZey4lnr2hqUdDobQB4WJdJDjpLKeVFfo2B+oteWkVRjAT8rf0+oe1s Q+mvUXhHROWQsUfTNKbTg0UVeps1So9FuwynuJwsLqpMwVNzRCjfrYWJw1NjyKnmvg2X lhLwdlRcFNbwldUBKd+vB9dCe7WrKzVno3SosIu9RoMGU+lkgG4W5v8Kf9TDrZn///iN RJudKFog6x3VfD3/dejoi+ezDQyj5dUHsI9IxQtCsIk3y+4nHogeDs+N1+gvE4NzTr2N RSTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=yf4C/FjebiBmwfMNA7VVzIaArAhZoDxzlW0Mdi9chBI=; b=Yx4A1MHz9jgukOdbx6m9ym4dX1Wh8kIHO3u+pDeL8WmDcoU5hR7mLDstKamQYC+KfP Wc62y7fZgAXXYINI/7XjqzFf7mRcdXs7wY6hZ0MVZEUCV8+1U/yzkeOLHJCZZ1rXGxNg pIw3glmpRJr0L/QNVD9JJkFgYjtr2nRWKWcXOtClGFXgy7FWt987CsxIUFwQ8lN5+JYq FXRIVv/kAlw5LbxndiC8iwTvChSnMUijAzZerSn/5TReAe+5quko8VISPduIg3jp7Lti oQYxpQJq4PVcsVnS0OHvJ+Rl/ZHzBOQBTIxVC7aIrMNfzaFmnf3uMBl+/0ANSDAwJlhH Zyug== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id n18-20020a056a000d5200b0050c92d89838si4181457pfv.353.2022.04.22.14.51.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 14:51:24 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F096D3492E1; Fri, 22 Apr 2022 12:59:15 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1388394AbiDUKby (ORCPT + 99 others); Thu, 21 Apr 2022 06:31:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245088AbiDUKbw (ORCPT ); Thu, 21 Apr 2022 06:31:52 -0400 Received: from mail.meizu.com (edge07.meizu.com [112.91.151.210]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3B7C1113 for ; Thu, 21 Apr 2022 03:29:02 -0700 (PDT) Received: from IT-EXMB-1-125.meizu.com (172.16.1.125) by mz-mail11.meizu.com (172.16.1.15) with Microsoft SMTP Server (TLS) id 14.3.487.0; Thu, 21 Apr 2022 18:29:02 +0800 Received: from meizu.meizu.com (172.16.137.70) by IT-EXMB-1-125.meizu.com (172.16.1.125) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.14; Thu, 21 Apr 2022 18:29:00 +0800 From: Haowen Bai To: Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter CC: Haowen Bai , , , Subject: [PATCH] drm/amd/display: Remove useless code Date: Thu, 21 Apr 2022 18:28:58 +0800 Message-ID: <1650536939-13778-1-git-send-email-baihaowen@meizu.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.16.137.70] X-ClientProxiedBy: IT-EXMB-1-126.meizu.com (172.16.1.126) To IT-EXMB-1-125.meizu.com (172.16.1.125) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org aux_rep only memset but no use at all, so we drop it. Signed-off-by: Haowen Bai --- drivers/gpu/drm/amd/display/dc/dce/dce_aux.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_aux.c b/drivers/gpu/drm/amd/display/dc/dce/dce_aux.c index 8e814000db62..29e20d92b0bb 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_aux.c +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_aux.c @@ -565,13 +565,11 @@ int dce_aux_transfer_raw(struct ddc_service *ddc, struct ddc *ddc_pin = ddc->ddc_pin; struct dce_aux *aux_engine; struct aux_request_transaction_data aux_req; - struct aux_reply_transaction_data aux_rep; uint8_t returned_bytes = 0; int res = -1; uint32_t status; 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]; if (!acquire(aux_engine, ddc_pin)) { -- 2.7.4