Received: by 10.223.164.202 with SMTP id h10csp132593wrb; Mon, 6 Nov 2017 04:01:55 -0800 (PST) X-Google-Smtp-Source: ABhQp+QqhgU2feDx28tqPbEGPR9j4dlvz5XhXfak12o8f06ca84QNtFOPyb59yP0yLDyp8bXftf3 X-Received: by 10.101.75.141 with SMTP id t13mr15140055pgq.122.1509969715168; Mon, 06 Nov 2017 04:01:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509969715; cv=none; d=google.com; s=arc-20160816; b=Kcvr7spNjeEcGugG0HCvdJKszWoUzx3QR/4T7XkHhoyVd0XaQC4jMxoXOabScBJIOE hTfdEn/aN2UKDjd2pjXiQXgrKZmP5nSDI27aTtyl/73w8vMHF8B7HXjNv9nc1iMfS9Ov HxG65ieDRKQrVxcqa6e/HXAqucjw0Jbw6TlrslIgvHujwOe8UXC/eM8zd3p0yULNBbZN lhBJ3l+2AIH2LZrq+7oHculL0LmUPiqr6Ce577sreiOS+cQuDdHnSXmZlw0ceNldRfSh 8dRBX8W1nIaPKD8UaxP+yF5wgBQ9AATcI8MtQ8Xcww4bjyUoHp6URrriv8gLgi6Iy9m+ 43YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:reply-to:dkim-signature :arc-authentication-results; bh=vWMV0+a77MELTav4mjeu667m7de1Am9RkYbvf1CQc1E=; b=YTeagA5e+EJdh3aJXpgC+LVRsLatO5MwhTAI/t4K+0PYu3fR5M2QiXGwZKuSnyhlyn AZWEItaux5IWyjgyXEaB8WtY/A47PgJc/NSRra46iY0qR3YixYB9luMA0rxdFDQWUBUf VmE1PVpGDzGICOfFknLGIVaSkDqVM+L0Y5BmziNkXk3UH6Cfy7kzHMAngGDtTkAFKqyo CcFLINzVLp+N+ntCS/WWPf6QkDWYzaI+qTQwwMKS+oNT12rNywYhxIUOcjo4sDKsA66B zwzl8Y4z8c1BmBicoSAtkq+M6/zXGNPW09iuowIGWBRiFMGeNdD8UnQjrXmSZCmMdXSa whKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SZE9SaTm; 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=NONE 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 p11si12383284pfd.118.2017.11.06.04.01.40; Mon, 06 Nov 2017 04:01:55 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SZE9SaTm; 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=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752635AbdKFL7e (ORCPT + 99 others); Mon, 6 Nov 2017 06:59:34 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:44827 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752362AbdKFL7c (ORCPT ); Mon, 6 Nov 2017 06:59:32 -0500 Received: by mail-wm0-f67.google.com with SMTP id n74so10448977wmi.1; Mon, 06 Nov 2017 03:59:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=reply-to:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=vWMV0+a77MELTav4mjeu667m7de1Am9RkYbvf1CQc1E=; b=SZE9SaTmraYKmOM43CgRucqsuqnujx0QAzQyDC7gEuWrRimWBE/KiSfUbuHtJ6AAtj 4tv8Ux/zezPCRdKLk/o+Ovpm7lLpqLsT3lgP31N1ACV7qoPVXd3ta1g2IgRD7gdtw6eE EtmLg1LH6NvNWVR3bRSMIIjKLx+0eJV/zSq3b0q6cw8UhcjhLhBn0Legwik/NqHNJyKq rqXlReazXGQv64CEtIcrF0Qy23DERwwrVE4PoBv9DZomhh+wc9keaIPzJVRqKijj0wna YSdbBgW/Q2vMH8gCvHin9aB/rQZm+CVavqoIq2xFGk1gCWUmjz7f6MC4aSWwg7VOIry/ xAtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:cc:references:from :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding:content-language; bh=vWMV0+a77MELTav4mjeu667m7de1Am9RkYbvf1CQc1E=; b=o4sPskIMgaxXKL/1EKOnrIQxYYD2/8mCG7CFPAvYeibpUXSgCFfS6DhrNmYSBYoUln dCSB8nqNsvUgVwhmZOquMfiXOuxFoXuIQu15BJFyxq6T/XgbUpAz0xsjg/vfwHNxVc9s fw9GbuXUEbzffeDj32y2q2b/U344PwGmI3wTZ2Z9LuYkX2P/0GAlbe0Pb2bAI25K/57N EeF1VVUEIu/IT/OH78zAbA2fT3/36dTqnHBValc0PNgsd2fFWXVjTz4efXq5oO6J22zz HsewAEs9k1w6tmUl66Z1y4bhY44j2GmuiYZ62vx/ANE4tYgoXsbNrEeEHzWCxyWiWOPt aXjw== X-Gm-Message-State: AMCzsaVWRBCOVkobE9wTFdjklldlVlWLj1IZqFTCPDXZCqK9ah1/Vbcq LXrbofIB1NOF9dj2vX1Dw9mCaEkA X-Received: by 10.80.177.104 with SMTP id l37mr20445618edd.9.1509969571117; Mon, 06 Nov 2017 03:59:31 -0800 (PST) Received: from ?IPv6:2a02:908:1251:7981:7c05:a9af:1b93:bd8? ([2a02:908:1251:7981:7c05:a9af:1b93:bd8]) by smtp.gmail.com with ESMTPSA id g49sm10567266edg.71.2017.11.06.03.59.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Nov 2017 03:59:30 -0800 (PST) Reply-To: christian.koenig@amd.com Subject: Re: [PATCH] drm/amd/display: remove some unneeded code To: Dan Carpenter , Alex Deucher Cc: Charlene Liu , David Airlie , Harry Wentland , dri-devel@lists.freedesktop.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, Dmytro Laktyushkin , Vitaly Prosyak , Yongqiang Sun , Tony Cheng , =?UTF-8?Q?Christian_K=c3=b6nig?= References: <20171106114422.sd5zoah6k6eaww4e@mwanda> From: =?UTF-8?Q?Christian_K=c3=b6nig?= Message-ID: Date: Mon, 6 Nov 2017 12:59:29 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171106114422.sd5zoah6k6eaww4e@mwanda> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 06.11.2017 um 12:44 schrieb Dan Carpenter: > We assign "v_init = asic_blank_start;" a few lines earlier so there is > no need to do it again inside the if statements. Also "v_init" is > unsigned so it can't be less than zero. > > Signed-off-by: Dan Carpenter Acked-by: Christian König > > diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_timing_generator.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_timing_generator.c > index 1994865d4351..c7333cdf1802 100644 > --- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_timing_generator.c > +++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_timing_generator.c > @@ -236,13 +236,10 @@ static void tgn10_program_timing( > if (tg->dlg_otg_param.signal == SIGNAL_TYPE_DISPLAY_PORT || > tg->dlg_otg_param.signal == SIGNAL_TYPE_DISPLAY_PORT_MST || > tg->dlg_otg_param.signal == SIGNAL_TYPE_EDP) { > - v_init = asic_blank_start; > start_point = 1; > if (patched_crtc_timing.flags.INTERLACE == 1) > field_num = 1; > } > - if (v_init < 0) > - v_init = 0; > v_fp2 = 0; > if (tg->dlg_otg_param.vstartup_start > asic_blank_end) > v_fp2 = tg->dlg_otg_param.vstartup_start > asic_blank_end; > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx From 1583317004728373974@xxx Mon Nov 06 11:46:02 +0000 2017 X-GM-THRID: 1583317004728373974 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread