Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1528641imu; Thu, 13 Dec 2018 17:28:04 -0800 (PST) X-Google-Smtp-Source: AFSGD/WVixysenJLJuzvtCZvFR8lebJDp+AI37fCCRdblLiFMY0WVv9sjmZ60y64CW7/Mh+1trBe X-Received: by 2002:a62:6799:: with SMTP id t25mr962357pfj.139.1544750884640; Thu, 13 Dec 2018 17:28:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544750884; cv=none; d=google.com; s=arc-20160816; b=wvoU2HOObK7sLfG+IZEh3R3MVqeTR74RNIJ/VSuvk+HUwGD9F6i0uMGHzPa5hBoXCt GDIcK8xOVMPLZgGDmKGeCxRXqRRcexiwgthNSZqWAzeKK7EwR31BRaX1DzwEwxddfP2X y/S46bEbvsuxdexwcH5ybuhi+WV+wr1qOpqpiI/tnbPZaw/4HzzHcWEcTbBfyo6pDcXF 709usF4A7DhSfGh7FkSUU45obdkTvzJu32Oo7l5n5eu4upTXWnxCnLlE3c5gX3uHP+WM 1bi/r90KxezmumXyvrr8pCwe8WwTqcf7VrPB/ov+32yJR46x7b/vdguLZ81Tcf6fzYNk 6iGQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=w4pZaGln+EV7TSqrRKei4xJIYbPqKbXeEfoaRuQFS/Y=; b=PJQ0DNWwMYCiK0EQgwEE6YwcOVhdGNtTjOgqVyQZeEimWBcyrQsDr/zAWLvHDO/k1F Rhw+RgxUn7FumHIfdE40882td8LvEN1jHfLjqg/KEpggvxNbrXsGNiUQZX1y0QskpwS9 lFaJQA4W+pEjl1cFbEffRSt/sBpe+kbD2tNxWY+n9ZUPP4lSIaTpUHDzc2vxmpc4JLTK 9Y3KHwjUAdesVno4pLYnTZ8dItq3VxTxndeQb+jF1Unv6KXc0+4Ec/SxEuvszRwpdE5w /LJj/JmUgZmTPggjl+FuEtf+Rj0P8XFIqhrvnKOH6w4RIjWkjRuac4iNJs9ObOds3oL9 sPEQ== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i6si2744366pgm.296.2018.12.13.17.27.50; Thu, 13 Dec 2018 17:28:04 -0800 (PST) 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729210AbeLNB02 (ORCPT + 99 others); Thu, 13 Dec 2018 20:26:28 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40732 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727638AbeLNB00 (ORCPT ); Thu, 13 Dec 2018 20:26:26 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2B75580F88; Fri, 14 Dec 2018 01:26:26 +0000 (UTC) Received: from malachite.bss.redhat.com (dhcp-10-20-1-11.bss.redhat.com [10.20.1.11]) by smtp.corp.redhat.com (Postfix) with ESMTP id A42F56012B; Fri, 14 Dec 2018 01:26:24 +0000 (UTC) From: Lyude Paul To: dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, amd-gfx@lists.freedesktop.org Cc: Daniel Vetter , Dave Airlie , Harry Wentland , Jerry Zuo , Juston Li , Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , linux-kernel@vger.kernel.org Subject: [WIP PATCH 01/15] drm/dp_mst: Remove bogus conditional in drm_dp_update_payload_part1() Date: Thu, 13 Dec 2018 20:25:30 -0500 Message-Id: <20181214012604.13746-2-lyude@redhat.com> In-Reply-To: <20181214012604.13746-1-lyude@redhat.com> References: <20181214012604.13746-1-lyude@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Fri, 14 Dec 2018 01:26:26 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There's no reason we need this, it's just confusing looking. Signed-off-by: Lyude Paul Cc: Juston Li --- drivers/gpu/drm/drm_dp_mst_topology.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c b/drivers/gpu/drm/drm_dp_mst_topology.c index ad0fb6d003be..9b1b5c9b1fa0 100644 --- a/drivers/gpu/drm/drm_dp_mst_topology.c +++ b/drivers/gpu/drm/drm_dp_mst_topology.c @@ -1896,9 +1896,7 @@ int drm_dp_update_payload_part1(struct drm_dp_mst_topology_mgr *mgr) req_payload.num_slots = 0; } - if (mgr->payloads[i].start_slot != req_payload.start_slot) { - mgr->payloads[i].start_slot = req_payload.start_slot; - } + mgr->payloads[i].start_slot = req_payload.start_slot; /* work out what is required to happen with this payload */ if (mgr->payloads[i].num_slots != req_payload.num_slots) { -- 2.19.2