Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1864368pxj; Sat, 5 Jun 2021 05:33:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylk4pme1LCZcC5cHGMq5YJE7aa4dxNz3MWkbZE6hK7s73vXfKTUcOykImQt24+Iz+N0qPt X-Received: by 2002:a17:906:5949:: with SMTP id g9mr8884882ejr.296.1622896410050; Sat, 05 Jun 2021 05:33:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622896410; cv=none; d=google.com; s=arc-20160816; b=CSEHueFPhokWYYclNT/a5/9mC1gjxpSyG6QMeo+Q4HY3ALluPLd2IUCir12DfVxARY 8+I7WCEuoPAeQAOqRJIpQQiqPtnGdPAKGdVlT8+ZYllj5eErNYxuMpC4Xwx+RWozcMiB Y4FfU44aY0N4B1MZdF7GEHF+q7uY5PM9F/7we5yPgHQOhUpneTqGWkAOaE3smkIUPQVP irlDEOpEJCHvGaFli+PvO4drkuWv2ETqpB11Y7Ag2s5jghHe8RSWCzcBYpxnPi9T7jAh rdR1pc+quT0WCeKTSaICVynbz/rofQ82ISf4XgUIb7N1FMyEUvSWGI45qFUQ1NEYNoZT cB9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from; bh=t+gj8iMH+CUkwOwJmteUPyV+dk8/L5KGEoqv30EYu68=; b=ofePrI/Sod4D/6dz1Oggjz+vmKH6WHswv5+SWWpR3vfeyuk9Tm6q9Ndz1RyqHNrSDp CzORn9vqrESIpA2vGyuhf//Zxpw0ir3G+BKL/KSX3jn0838jmpo6BqRGDnRdAkVyr2Sd dvht4sS//q5UBDcW2okDFD/5kS2nwj67Zvwmpvcs1mcKSlb5PtFWAcBf+Au98CO2QMcd Ge7lJ+JIhAuE5NiYc54CNp1J1Yjg2Xap6tFGOSZGnKspfQVETQj933Q3Ad8ACbQ4Am3Q /AgNURM8dCG21VI4fPkU9g3NenyJ9R0PWu+cg03lhbkgQb36+mKInnbnxnS8T/vWV21O hfNw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m14si7188746edp.172.2021.06.05.05.33.06; Sat, 05 Jun 2021 05:33:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229931AbhFEMd3 (ORCPT + 99 others); Sat, 5 Jun 2021 08:33:29 -0400 Received: from mail-m17639.qiye.163.com ([59.111.176.39]:47144 "EHLO mail-m17639.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229902AbhFEMd2 (ORCPT ); Sat, 5 Jun 2021 08:33:28 -0400 Received: from ubuntu.localdomain (unknown [36.152.145.181]) by mail-m17639.qiye.163.com (Hmail) with ESMTPA id 3D8DF380100; Sat, 5 Jun 2021 20:31:39 +0800 (CST) From: Bernard Zhao To: Harry Wentland , Leo Li , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Daniel Vetter , Hersen Wu , Solomon Chiu , "Li, Roman" , Dmytro Laktyushkin , Nicholas Kazlauskas , Charlene Liu , Daniel Kolesa , Bernard Zhao , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/amd/display: remove no need variable Date: Sat, 5 Jun 2021 05:30:59 -0700 Message-Id: <20210605123137.8800-1-bernard@vivo.com> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZQk0aGVZISBlKGEseSE0fHUxVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWUFZT0tIVUpKS0 hKQ1VLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Kxw6UTo4Dz8TCQkLIR8KD0NR TDQaFBVVSlVKTUlJQ0JNSUJCQ0lCVTMWGhIXVRkeCRUaCR87DRINFFUYFBZFWVdZEgtZQVlITVVK TklVSk9OVUpDSllXWQgBWUFJQkNPNwY+ X-HM-Tid: 0a79dc284e00d994kuws3d8df380100 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org remove no need variable, just return the DC_OK Signed-off-by: Bernard Zhao --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c index f962b905e79e..7daadb6a5233 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c @@ -1266,8 +1266,6 @@ static enum dc_status dcn10_validate_global(struct dc *dc, struct dc_state *cont static enum dc_status dcn10_patch_unknown_plane_state(struct dc_plane_state *plane_state) { - enum dc_status result = DC_OK; - enum surface_pixel_format surf_pix_format = plane_state->format; unsigned int bpp = resource_pixel_format_to_bpp(surf_pix_format); @@ -1279,7 +1277,7 @@ static enum dc_status dcn10_patch_unknown_plane_state(struct dc_plane_state *pla swizzle = DC_SW_64KB_S; plane_state->tiling_info.gfx9.swizzle = swizzle; - return result; + return DC_OK; } struct stream_encoder *dcn10_find_first_free_match_stream_enc_for_link( -- 2.31.0