Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp2559613rwi; Tue, 1 Nov 2022 09:03:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6LFRWL4xOZ0+1gPDLDrzThlorlnPGf5br+7oGEDcOsVz9unayanVrK4QgxC2wmmNt6s2ei X-Received: by 2002:a17:906:2da9:b0:7a9:a59c:4be with SMTP id g9-20020a1709062da900b007a9a59c04bemr144613eji.556.1667318586797; Tue, 01 Nov 2022 09:03:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667318586; cv=none; d=google.com; s=arc-20160816; b=D5zO4s8ojp3mVdpCqx6stRZ8pamMJx9lquThj/mmBpKq2G1NgF12Yflrv6Ut0nXMnb /6HorQ6zvn/D2GZhDPzLdWeOS3lhIKYsTWbYwCkes6Gao2lj8ybN/JyK0Bh/Q2zXgwYm Wo7uWCDqk5NpdKp9AVhKARJdU1gIzV4wxpzylhh1Pe+sEvRnaorN/1vO8Si4b6xdsU/w 8ZTsml8Q4K8EaeHn5BN46IovQQ5ElFXkYWtVNq0wPMpXJ5PJ0kxFYXeEL5agwmWylapZ 7W3MkTboRY7/24P0gcbtdWY4Bw5CMhn86SrKrm5YEgIDoixk4aYyVGpNbGU2uMNzdK3g TNlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=ti5+AeQyzPkYvRbA/XqZK4j3XoWMZ/WRGD4b3Fl6Gl0=; b=v9WVpDB71l6SSyNIetmf8zrA/psJy8YaQE/x5dIQNzkOyHnj9I3IHh+R9FyQjebQy6 qDgsT7rwNUv+5LxH0t/Rrc1RdutS1DxdA1f0Ah2fBZg0R/HElwpAW57+nLm+07NgVcLk vyVeTMlibFoZHsoww7Qo0qW3of20FX1xek7U4UsfAOJi8aueEgyZDQnzSf/WoWGRJu8v GcgCRygEdbYvPq4fckEqIzR/L++KN79Nn7d8yn9ci5SjOAWikACAzyd4sEpa9nQjQo96 Xfzc0nFEMatizXNr37Awlg6FhBcPq6DFpUFijsYOKcKJHodLr10KBd/mN2U9jNWz4T/t gGpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=d5SlO76q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g16-20020a1709065d1000b007a858ead526si7761095ejt.730.2022.11.01.09.02.40; Tue, 01 Nov 2022 09:03:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=d5SlO76q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231222AbiKAPbv (ORCPT + 96 others); Tue, 1 Nov 2022 11:31:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbiKAPbt (ORCPT ); Tue, 1 Nov 2022 11:31:49 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DFCB12D16; Tue, 1 Nov 2022 08:31:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1667316703; bh=cDsCgGbMgxtrDxmKnfejjSiozbQ852sV0zOmQsq2ASg=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=d5SlO76qBWk2Rv7VzqKL67vO5sbNDfwKT3edaP9wGp/Xf1r7PA2beSn+jt7ufmbs6 b0UtmSWKxD0WOORGR3DXeFeGHVuM/1nmr/8MRMvfdun0kgLvsPNSJ11Z9olaR72DuY M6nJ0Ilqen2TmOmbtBDra9PBtCkaGWzu+YuuyY6eh98G7Du5+iEjG1O7iqYTaxxrsv WtluUWJc8OmjRLbxInEgkVkCBVC/6zaH3W27Td/Qp4XhHrAkifzmpP+nMIwRlVPdVs xvmwVQ/A+xanFzQyPrstBfUf4eV2Kwo7klE8UsyR0+e20b+6Aq4MUm3oo46vm8dnC2 pgjhMBIbrnjZQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.20.60] ([92.116.182.121]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MzyuS-1pDjFB3B7G-00x2tU; Tue, 01 Nov 2022 16:31:43 +0100 Message-ID: <9cca0527-3483-9a4c-6989-39ecd04c35e9@gmx.de> Date: Tue, 1 Nov 2022 16:31:43 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [PATCH] video: fbdev: omapfb: remove redundant variable checksum Content-Language: en-US To: Colin Ian King , linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221101102947.27524-1-colin.i.king@gmail.com> From: Helge Deller In-Reply-To: <20221101102947.27524-1-colin.i.king@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:RfAhM3HtBD1GXQLwMI4J3pZ+iPhEykN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DJWVNsf5+Fgp4lH1d5sU2BDOqnVNHPEBbfxeE9DyE/Zh9h7y1B57LGquP xMYPUvlI7i2/z6aEdI0Sl0cdTNbuZSKiP2Tv/FyTJcZWiwZlxJbmSHI45JckKk7/4TscMBuOi QWgQnLiYKiGf773Yx/DKKBxOS7w= X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/1/22 11:29, Colin Ian King wrote: > Variable checksum is being used to accumulate values however > it is never read or used afterwards. It is redundant and can > be removed. > > Signed-off-by: Colin Ian King applied. Thanks! Helge > --- > drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c b/drivers= /video/fbdev/omap2/omapfb/dss/hdmi5_core.c > index cb63bc0e92ca..b33f62c5cb22 100644 > --- a/drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c > +++ b/drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c > @@ -129,7 +129,6 @@ static int hdmi_core_ddc_edid(struct hdmi_core_data = *core, u8 *pedid, u8 ext) > { > void __iomem *base =3D core->base; > u8 cur_addr; > - char checksum =3D 0; > const int retries =3D 1000; > u8 seg_ptr =3D ext / 2; > u8 edidbase =3D ((ext % 2) * 0x80); > @@ -178,7 +177,6 @@ static int hdmi_core_ddc_edid(struct hdmi_core_data = *core, u8 *pedid, u8 ext) > } > > pedid[cur_addr] =3D REG_GET(base, HDMI_CORE_I2CM_DATAI, 7, 0); > - checksum +=3D pedid[cur_addr]; > } > > return 0;