Received: by 10.192.165.148 with SMTP id m20csp719492imm; Wed, 2 May 2018 07:45:54 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqKQsPRMAi0D4BFSfldbNiGNJBT/cxPSvhj8VcantXdLPRPj2R8l7I967Cd699weWdbRGGy X-Received: by 2002:a63:2ace:: with SMTP id q197-v6mr16625473pgq.60.1525272354711; Wed, 02 May 2018 07:45:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525272354; cv=none; d=google.com; s=arc-20160816; b=Dfl/5lFwizx/zUIfAQTI5sFRgCFvn0tRIz7tx5bNjz+Hn4fZCXCWxrX+cxmBzl0UPV cgZhFnC2B8bPCYzZFWnzb4JlTufuoLsjmuyrs0Kb9ZtN3J3nW9ow6n7ZL0AKMRiQO/87 JoiEa6vhNOKm9xlwoXbeIcyw5gCJ6I3IhHMYD5oEdMG/C0MV7idaPxeJLvgHx0S+UdwX M7Wdgx1rHaOvDaZY9LqIKTKxfTs4uIxf1oqHaBP3rVTiK1CkKUrwZFDuGfRELY1B1YB7 HEqXuzdJh6Hb5uCYVBIHxXl+7pLdSq3C0I2JT/6Q2w/BguGeKajRTE+9QtDCRL9USlys bKeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:arc-authentication-results; bh=NuI1r0zvO2NQlf7wrHUUHy4usBVOdTJhkMtzmQfN0GI=; b=ZL3XjQc0HQbNqpIkb0qa8Tc5wcIj/8GtEjICwtCa7Ph8tVt1jdB9i2aJEYNJr+jkt0 q+MLmTaI1q7+DFf8ndxvvwyBjtiwCcxFbh1tgoIh/zSeBJBQRmcCMdP0gcTLX0GylCk5 UF8n+FOZ/zRsUTWZpQ/Dl7ySFZFXb9V2qSomBJs902ov/6bzhxftyd3eYVv8w+E2ROTM HimzELn5CRUF7Kw7NxrdEyRFl0bLQ2/dTHB48vHICK5enOcwu/X9mOJYAEzotn2K2gnl veQDd9UhXHgDTc29loFiezEHXYvGT1gV8JMVx6xrb0Rsx5fXXrSzvFPosNRMRj34WBq2 wFzw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v7-v6si11868142plp.31.2018.05.02.07.45.40; Wed, 02 May 2018 07:45:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751812AbeEBOnY (ORCPT + 99 others); Wed, 2 May 2018 10:43:24 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:53278 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751599AbeEBOnU (ORCPT ); Wed, 2 May 2018 10:43:20 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1fDsyS-0003MS-Td; Wed, 02 May 2018 14:43:17 +0000 From: Colin King To: Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Zhou , David Airlie , Harry Wentland , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/amd/display: clean up assignment of amdgpu_crtc Date: Wed, 2 May 2018 15:43:16 +0100 Message-Id: <20180502144316.32056-1-colin.king@canonical.com> X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King The declaration of pointer amdgpu_crtc has a redundant assignment to amdgpu_crtc. Clean this up by removing it. Detected by CoverityScan, CID#1460299 ("Evaluation order violation") Signed-off-by: Colin Ian King --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 1dd1142246c2..2beb8821e19e 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -3773,7 +3773,7 @@ static void remove_stream(struct amdgpu_device *adev, static int get_cursor_position(struct drm_plane *plane, struct drm_crtc *crtc, struct dc_cursor_position *position) { - struct amdgpu_crtc *amdgpu_crtc = amdgpu_crtc = to_amdgpu_crtc(crtc); + struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); int x, y; int xorigin = 0, yorigin = 0; -- 2.17.0