Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp944360pxb; Fri, 22 Apr 2022 15:01:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx40roOVBEmklzjak7uezX1z4QfvPPgzqbQNjSIEUyQQkjBqMD+C1251QKIENZxA/z/TM5I X-Received: by 2002:a9d:6488:0:b0:603:4051:da06 with SMTP id g8-20020a9d6488000000b006034051da06mr2596263otl.298.1650664886945; Fri, 22 Apr 2022 15:01:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650664886; cv=none; d=google.com; s=arc-20160816; b=H/koLq3vB2dNKxaNj63YUUq+JFyvD7RYiGOUbW3bMTCS6Is9o7/9fXDLxcHdIBm6ms rBUT4V22pJZQ6dNk56AOecM5QCxxDwCL7vRobybKwY/sOJGt9rDbPFWhoqNUnkilSvu4 ZjMYSyiQ7ESUrcwnUKc0SPvemVU4+iLf2I8840rBkxq1eXMenM3UbA41zC5oKoW9WWyp DBDuKHO/LFLGyVba3A9229l7zb/N8tVUzFnjwejDtvxjyXfnGjHeUza+wVLxqreBlFhw jZXFIkJePwbJWEF4PjEAiA9mJ6Hg+xpvQ5WSXGubDlaqeGdriwFpR6Mx6JCCJGUBkoVR 4rrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=k6DcgaBgifbl98HwTQyTz4opgdKW16OPxOhCg6ox3bw=; b=ruy2Avgt8PVuoqr4/B9HbXpczGN7Y+oiXV135jrlK+fgp/sKXM14bh4A6Gjqa5JrEA SF7Y0WJuw5T58T6WLV6dH9u0YBPGqPEypPCpaZziGg5Vu8xTRsxgRxt6zP2DvZw/SzvO 3/c2dAklO+uOjlX1LkcvXXgGrCNYdh6Cgv05Zp74uurCJnEL6WSDpNF1ysS/qzftQAPm 3mg7fAiJMlDYMecYzpnvle/NZqPpgKm28XssdaKRk9lyme3DFf1zEaQQ+Vym2FfiDqiM btXBSvN3IJGIpwvi+R5NBpfogzR7uX0psRe0BFrWLxAOJUFPZp0BERBqrJ4/mSA0QUMC ff4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=akZH1M9X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id r2-20020a9d7cc2000000b00605488a2eecsi5089948otn.205.2022.04.22.15.01.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 15:01:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=akZH1M9X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DD271354BE7; Fri, 22 Apr 2022 13:09:08 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1389124AbiDUOVr (ORCPT + 99 others); Thu, 21 Apr 2022 10:21:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357522AbiDUOVp (ORCPT ); Thu, 21 Apr 2022 10:21:45 -0400 Received: from mail-oa1-x32.google.com (mail-oa1-x32.google.com [IPv6:2001:4860:4864:20::32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A7753C4BF for ; Thu, 21 Apr 2022 07:18:56 -0700 (PDT) Received: by mail-oa1-x32.google.com with SMTP id 586e51a60fabf-e5e8523fcbso5503513fac.10 for ; Thu, 21 Apr 2022 07:18:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=k6DcgaBgifbl98HwTQyTz4opgdKW16OPxOhCg6ox3bw=; b=akZH1M9X1Mq0wvuSic/T+8WK0gaoybBnq14OO+c+2tuwmuNrFE/Tz1feJvZ4HpbwtI NZ49Dc9Owb5RUujQIA47u/DGtnwCpY/5weTW/7vDTtfD3g+GENCOi/neHowgA7im+dTh w7pTm5p5Iy+pIjTHy4XRTiP1Adthk4fO2oGUL5K9CNtmt/1k43Eke5y0ZvlacYlP95lP EWnK6lnz/IP8J0Gp3g2S1B7QjrptJgveyM/mzQSQ3EOV4piUVeYgYjSgMLPca87vwUMI 4sSBwGpSAb80sXMEMvjVideV7RceGWxOy8SutDao5yiyVAFTNPwqxERvGnOt3kakP/kG z3og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=k6DcgaBgifbl98HwTQyTz4opgdKW16OPxOhCg6ox3bw=; b=dZUMF0/uWBg66QCsoXh78/5ZMKfasd9ljnBHfrhGzZ7WaNcycirhBfWHtC6N1x0CRd 9yV3LBH9GtMwyP2sOlRX6k+kr8ulsGJP4KtAxFHyAC2jJRYPCbcgvEQb11hkfxyy0+ln pX+ejBcjS8TuE+YUDTz3A1cW5W0KrnsVwhTmZg2dH2ydFHl7IvvSl8D6u/iii2djllsU /UeO77mHwIdO4RzqJ/JBL+m2JMoLBbBAfdlDLuXLnX+6lf3WjhRraoZUAzenNXLrFaAE um6uas0ewKsw3f01dm8IWrmEhyNsuPrl8T2QGZmHvV03arXy9Ooc0NJPMhCR4K1jRvYa RTag== X-Gm-Message-State: AOAM533RJd0uLJRCM8+eFttE+TkxU4ddHvdwOJHj0WTnGghh+EAcy7O+ nmhsPu8h5+Y0z+b02JGcVAEuQ7usJeWoEmbp7/A= X-Received: by 2002:a05:6870:d683:b0:de:eaa2:3550 with SMTP id z3-20020a056870d68300b000deeaa23550mr4071428oap.253.1650550735602; Thu, 21 Apr 2022 07:18:55 -0700 (PDT) MIME-Version: 1.0 References: <1650536939-13778-1-git-send-email-baihaowen@meizu.com> In-Reply-To: <1650536939-13778-1-git-send-email-baihaowen@meizu.com> From: Alex Deucher Date: Thu, 21 Apr 2022 10:18:44 -0400 Message-ID: Subject: Re: [PATCH] drm/amd/display: Remove useless code To: Haowen Bai Cc: Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Maling list - DRI developers , amd-gfx list , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 Applied. Thanks! Alex On Thu, Apr 21, 2022 at 6:29 AM Haowen Bai wrote: > > 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 >