Received: by 10.192.165.148 with SMTP id m20csp295140imm; Wed, 9 May 2018 12:51:15 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqc1GBZq5idV3CevPeVUFORqdeDcNvpEtyeUluUvhvgU/7s4oyu+dM/uI+eqXN9ZL8tbKov X-Received: by 2002:a63:7f07:: with SMTP id a7-v6mr2700061pgd.173.1525895475604; Wed, 09 May 2018 12:51:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525895475; cv=none; d=google.com; s=arc-20160816; b=Iur0vyQWWEiw/QBWxBF4a/BQd44M7HGOxfGLLtTqeonUkDj93t/X0otLApXsQXcw5v blONBc2uAgjrhWPajzbs7aHlH3T+6bRa9E/Yy3vvrAdt8ry5gZsK9v5QID+yMlPKAc9/ aqjA/WK/km1QsvSzDmZPXfa8hWCNrhOUfe8eqocz0o3bjj2j84m68mj7RldP6HquxUvQ FAxPBkKDAttQWc/P/CGHH2XoBp946qBJk1Z7mVjn0GzYf88uBAtmJUPCN9j+N8pptQMz bjLDSSJkftcyl6zeVCKuVoM8smt5Z5kizukZnkRGOdagxjb0f4s9RpHpb+BAVVll/nTH zJ3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=6hpX1pVXACLhmV5ZykWDnwtJtW3D9U6ms411A/VhbWs=; b=MNO1yMIbCtcAht/2YUTe9Cwup3ArjHsa2UMDaEXWmrw4uPuNRLJoITw6rHsX+gBC2c lrskDcJBOuDzOLa4nxcAo8daByFA092RUs7NEiv4fosXqLjAJW5RQos+qcRguqRHDbsP ai4BaAadRLQdsa2xkpq9e16JJlHltcOXoe9ir9b5si3Wn9dM0BbMpzmv/zT7DSuOm4Rq 54Fxi6PSGusD8mOfwC5Jm/3qqzSmscjFB6riZu1KT9+3f0w4Khx+JP+jY7BN7TiTEItr JGaTDevwNmOo4s9ztgKXfK7m9r4Ot0uODL7d577kQ03aurKfebITmB30IyxOyBxTCEN7 YBxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=H5amIaRq; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n10-v6si20169257plk.112.2018.05.09.12.51.00; Wed, 09 May 2018 12:51:15 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=H5amIaRq; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965904AbeEITub (ORCPT + 99 others); Wed, 9 May 2018 15:50:31 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:46814 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965454AbeEITu2 (ORCPT ); Wed, 9 May 2018 15:50:28 -0400 Received: by mail-wr0-f193.google.com with SMTP id a12-v6so5782888wrn.13; Wed, 09 May 2018 12:50:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=6hpX1pVXACLhmV5ZykWDnwtJtW3D9U6ms411A/VhbWs=; b=H5amIaRqgJdhme2z3QsaQO80/vmsLezMpvppq/r8kF9DycEQvZYZ/03OKroMzdlfIi ljTSxlmdHo8AaxQ4YoQNNByVjGnBjsv9ZanPWoF71yiaSJoMZ/+Q7S1vuzUEm+5EKSVS WA1M1YW4Z8lEAMla+14i8+3NEnCRDOWvm7sYKBCmrUICSMQY2FF/qOjarIZVAGy7RXjF CIeY+nt6YkI8T4fmuHHoLTDOJM/AbPAyhiocGutXkWYoRL/SVJFceHcsgArZTNiWYebD ZCCOVMoCdk86eE7HVihs2bVGqQU3gIBq8qcpVyrLhaNg6pbsGbIdj+OlEN+9/gzD/16u OGjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=6hpX1pVXACLhmV5ZykWDnwtJtW3D9U6ms411A/VhbWs=; b=fCwBA83MM3GFLx6ywxwo1NOQa/kCKjuceWEdook4S6BprmW367/n+ziOS7XxaWe0OS ZFWmjPaFBg/5uZhlgGrdj+Ami8CAjpeG1AKJsBbwrgwVPHLhVq23YQk57Kxo1aqDa5mh BXeTTHI4xs9VYInw2rZnGvWdVg/eCQYrd/nzZNQHGs9RZ6z79sowm+ttVXrj/UhiPeOr HilupoLH4OjdLsctDxVgVzeZ+eW4U6Q0cHaj1E0eNnam2CyozW8RkE5LbdbYnf4smFy8 nkr5jbmUurwjKOU7AQcHeRf1CdlR0fEFbmiYK5VMlujndRgHtwcunY2IIYp9mlTsft1p NgcA== X-Gm-Message-State: ALQs6tAIW1xmanRmK8N8NRwqkhRoImfPMLfbraTg0dHu6ScL7a2ff2bT SvIM20qgF6cjVXHneLP+QJZUDihCb0IbH00c+CM= X-Received: by 2002:adf:8407:: with SMTP id 7-v6mr23616466wrf.176.1525895426597; Wed, 09 May 2018 12:50:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.175.76 with HTTP; Wed, 9 May 2018 12:50:26 -0700 (PDT) In-Reply-To: References: <20180502144316.32056-1-colin.king@canonical.com> From: Alex Deucher Date: Wed, 9 May 2018 15:50:26 -0400 Message-ID: Subject: Re: [PATCH] drm/amd/display: clean up assignment of amdgpu_crtc To: Harry Wentland Cc: Colin King , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= , David Zhou , David Airlie , amd-gfx list , Maling list - DRI developers , kernel-janitors@vger.kernel.org, LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 2, 2018 at 11:04 AM, Harry Wentland wrote: > On 2018-05-02 10:43 AM, Colin King wrote: >> 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 > > Looks like i goofed. Thanks for fixing this. > > Reviewed-by: Harry Wentland Applied. Thanks! Alex > > Harry > >> --- >> 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; >> >> > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx