Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp131002rdb; Tue, 19 Dec 2023 11:21:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IEeW3oH1f/93uG4zQ6eZ3wYd85n1rCXR5HV/aJidmhaokguSPYcm0n0hWZePuo8EOqtWquD X-Received: by 2002:a05:6512:368c:b0:50e:3054:a55 with SMTP id d12-20020a056512368c00b0050e30540a55mr2070087lfs.108.1703013694625; Tue, 19 Dec 2023 11:21:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703013694; cv=none; d=google.com; s=arc-20160816; b=cNRgY9Miu+h8SOHo8LWzBFcQfWh5t0850DeAKMk4QyHSPShuM1cqvr51kIpySI7AEI 9zGiHbilutPCa3bsV49syTFJAypvCbYAzIyXaAJLtwoL5YFkic15FRisj0rDO1AMtPUj 0OIX4EBSfl+7xxK6aLV2Hgnw9LCtsGKO8cgF0oX7VkCpPPSk3VGs0i59W2T0oTCA+oeP gEreITUkaGILFf5DOAgn+1DF6Cu+KpEd+/XBJn7+RlOaAsXNa7/8zQBS91nTACWCGp0M U0M9hK6F49XzHoa9HIUjhruqsUymNFWjedYuY1HBbaN7uRea9UeYzCCSFKnM9x9u8jty o39w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=2ETYb4p/dYwWhsBHF1nMWqW8fNK9SRI38gyUWxBP4t0=; fh=bi8OwRAPtRBSIErLG1ESpbj1xfRYtB39Ebln8DnoKDY=; b=opNTmLr9O3KbKtJoojpx+AaG0+4SUtmCv6930wn12VwMDGpxbOwl9nT85CjSuslab8 QiZzPcy3GsKC4nMq9uI6N9O4UkDxGQ1ioVBlhjCPVNH8N7jqIXp27x14906/UHAY2EeM IZwdzTwmpB0SnCoJKiU5x9cWGs9NoIVFT79QrbZBoKAsZ570gHrcF8JwZhX6gc0gmz0L QZc2yKLsm/RDgbM3u0SVSR4cdjjCQ0bX+5kpKYFgHeMP4FMcUZgxpEB0wCBuesyTmPne N3hn2YV0fvAcospWA1fcqP05ZyQyUAFJ2n/DGx3/mORUyIY75be27XRb2ca4YdNMttvm vq8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=djO2xDfQ; spf=pass (google.com: domain of linux-kernel+bounces-5865-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5865-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id l2-20020a1709061c4200b00a233c39763dsi2698955ejg.400.2023.12.19.11.21.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 11:21:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5865-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=djO2xDfQ; spf=pass (google.com: domain of linux-kernel+bounces-5865-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5865-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5F3681F25D23 for ; Tue, 19 Dec 2023 19:21:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 618F738FBB; Tue, 19 Dec 2023 19:21:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="djO2xDfQ" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-oa1-f45.google.com (mail-oa1-f45.google.com [209.85.160.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 61A1C38F80; Tue, 19 Dec 2023 19:21:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oa1-f45.google.com with SMTP id 586e51a60fabf-1f5bd86ceb3so3248951fac.2; Tue, 19 Dec 2023 11:21:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703013683; x=1703618483; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=2ETYb4p/dYwWhsBHF1nMWqW8fNK9SRI38gyUWxBP4t0=; b=djO2xDfQd85a2fpTfGKAzijr9XuJyDlw5Oxdn+TrlvwWNcGOYuHBlGpscQn0S4Yqlv fv2vzfeACQqH5ld5B8TJ0MqrWuUHBLZyPFjDAgSVme3gSKHEx6bGvD5F5oH7pP81AcE8 QIDTChN4TlIu7XycdmdV5IOpjoHzsIFGqK4yBSAChFGDX+ORs1MjpE7H9Ee3jHAg7TTq +HDkigGPUjrA8/7B/k8jCz2LN3Nw6CXg+/aXeJClT/cOetSbBIXiatXVKQr7IW3oYNZw tign2j4cE/5/7KbU4aqhK5KaknIxCAzw1jzhtAJtofKB6HFtUq+m4xIIHa3fNITUj8w2 DzWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703013683; x=1703618483; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2ETYb4p/dYwWhsBHF1nMWqW8fNK9SRI38gyUWxBP4t0=; b=E+5H7QBQ3pS56mn699azncOL0rnYVrgSk3ujw9BORXvRqCibbehrG1l6IJXjleK5m3 UouzEF2Q/vluFA9J37UI8hrg93mVw4Ksw6x99/YQSgXoPF0vIA9xcivK/MC7ERhLJ1XY zLbsDKrYv0EDFG7h7yXuIqGx+7ivSiD7Lb5T/8eX1ubHIVK1VjPTWWie//pMaNsP9YlS VoXFfRszzHOTlsQTO10RYZI9MWO4v+/Xymn3tlX1zgsOBl8Y38l3UCTRUJ24nlBkl49g khKhM/Km81tzhWI/RYgY4v+6h9bg2TNRx9S2CYCTgIj4cMtTp7iv3Z2dm+vSAzCJ6Kl/ HlGA== X-Gm-Message-State: AOJu0Yzrc+hetWL3POdgMA4ovXMASypyepkDIFuARyHEndvKCwyGlQUh hf8vajaJWyzzw9Ao3gfEWfEnsI0jWTbM0dqmKig= X-Received: by 2002:a05:6870:15d5:b0:203:eb72:7594 with SMTP id k21-20020a05687015d500b00203eb727594mr2055316oad.19.1703013683353; Tue, 19 Dec 2023 11:21:23 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231219141930.367426-1-colin.i.king@gmail.com> In-Reply-To: <20231219141930.367426-1-colin.i.king@gmail.com> From: Alex Deucher Date: Tue, 19 Dec 2023 14:21:11 -0500 Message-ID: Subject: Re: [PATCH] drm/amd/display: remove redundant initialization of variable remainder To: Colin Ian King Cc: Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= , Xinhui.Pan@amd.com, David Airlie , Daniel Vetter , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Applied. Thanks! On Tue, Dec 19, 2023 at 12:40=E2=80=AFPM Colin Ian King wrote: > > Variable remainder is being initialized with a value that is never read, > the assignment is redundant and can be removed. Also add a newline > after the declaration to clean up the coding style. > > Signed-off-by: Colin Ian King > --- > drivers/gpu/drm/amd/display/dc/basics/conversion.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/basics/conversion.c b/drivers= /gpu/drm/amd/display/dc/basics/conversion.c > index e295a839ab47..1090d235086a 100644 > --- a/drivers/gpu/drm/amd/display/dc/basics/conversion.c > +++ b/drivers/gpu/drm/amd/display/dc/basics/conversion.c > @@ -103,7 +103,8 @@ void convert_float_matrix( > > static uint32_t find_gcd(uint32_t a, uint32_t b) > { > - uint32_t remainder =3D 0; > + uint32_t remainder; > + > while (b !=3D 0) { > remainder =3D a % b; > a =3D b; > -- > 2.39.2 >