Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3309422rwb; Sun, 25 Sep 2022 04:22:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Hd5PsG9z2aaTthcJRkJpeIIO4qNO+/XhkZOqgsjyKaj4yELjgkTT7QeiVRg6xKynT1OgT X-Received: by 2002:aa7:de91:0:b0:451:ecf8:e3b6 with SMTP id j17-20020aa7de91000000b00451ecf8e3b6mr16998827edv.402.1664104975809; Sun, 25 Sep 2022 04:22:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664104975; cv=none; d=google.com; s=arc-20160816; b=Pf9LtSGkIyHB45ecddV67j+ocOkJCxWJ3L2ir1yxVyK/1KqN+gsGTnRbLZ349tMdiL nAYkObDoBtoJ+/EAxsvs/9OC5rSrmycSugrBMBwQqg0DJ+z0oyAAs2Nx8JAbnPJfNsE5 nyU4fq8h7Dp4LExp0ZPpJFCxZa8aVpJ7/1AaNvrp+k9uxo9r3tjLKQAkTsdFKZGsLOU3 LJy4ebZIepy8wHOlSsy0yAm/rbD1zXwmtMt1bjYf6V0CAbo36asAaypkPr2zF7iI/Mb1 5Y4pbaojr+9ygIQmICmH9ipY7h0YjJ3zPzfXfVZJgq1ophKwBAYJ1tXpguJjLuNjZty2 PsmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Gp/Ha2htjrzNnZRBk19og2CJr1VSWTi5j8kLc7bNtfQ=; b=qH1N5CQWvOTknMlywi2qihMJa/aVozwhxLcgUP6IkTzsTautBLQ1bgaJkobG2bF6X7 /QmU7pAFIc11nVyF69TnSindZgfxpkrNIN3nrIpiganrW49uFl0mZLHMhhNkFJ6N6k+x R1BvMwhGTRI6JKnOQ7PpNRwwpbZKHGuk7hBzg+91E46jW/NceK1vOL54g6mzGbp7TMRt QYIkMkEXgE4h8xvLc0eL/DXP3VJZSRn+RPljY6cQbde43WEFwqQGTRqkGsS0S79wDYLG 90wEiQ3UxFzYpRu4kYWSBYoFtRmgmDjAa7iPwEoh1Exp+eRPpL6m838i/fY6En0D7IBQ ULLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=WUauERvD; 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=fail (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 sh31-20020a1709076e9f00b007803739fe1bsi13978956ejc.10.2022.09.25.04.22.30; Sun, 25 Sep 2022 04:22:55 -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.net header.s=badeba3b8450 header.b=WUauERvD; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231727AbiIYLMe (ORCPT + 99 others); Sun, 25 Sep 2022 07:12:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229915AbiIYLM0 (ORCPT ); Sun, 25 Sep 2022 07:12:26 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7505BE5; Sun, 25 Sep 2022 04:12:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1664104340; bh=EwNoUweFLTpcmFCyNapA+75NoiwY+UAqj0hC3LTdWEU=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=WUauERvDcCQfhCuVW1zf8u6xdzLcogebMkeo7hJDT95lqGEAIVsUA4XDIZR+o+CGL GtSa9zR6HwNP3hvB/EZsNCiCR/gm+9mKU6oiNbeXmH/3GL4cZxKr4blQrPKM6F+I8K 3iqh8h2kncMW53Po27dm3eALBfKeyva4yNJhZjZE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.188.118]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MV63q-1omtAg0One-00S89Q; Sun, 25 Sep 2022 13:12:20 +0200 Message-ID: Date: Sun, 25 Sep 2022 13:12:19 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH] fbdev: remove redundant initialization to variable identical Content-Language: en-US To: Colin Ian King , Bernie Thompson , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220907135056.679617-1-colin.i.king@gmail.com> From: Helge Deller In-Reply-To: <20220907135056.679617-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:mG9+uJLhs0rJ7EE5NDTStivRp3V89GlvVCbk/OupfS7Q8yElvXV yXjZUtue2QzY/2HLxGdvjmtUCUeqcfaqyOgb5eZ0TwP9JR3oMC0rd/mGP5u6mUyBBcxTRsu yK3m91s9iabxguFSxf/nnLdSkrRHh8uzME5n7MElYs2HAXBCpB1Fx/PQ6U6l0MnqbPwPUFw rAQCZMHlmQXIGM880ASUQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:6lrue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CA1aT6OcSypt2obKS50E4/OEX8VETVrAkce3D 5smdMsQkuSfPO7mXyfWVRvoixbvLXDV9T0de/2aV/dd1EQLnGQ/RADaZRWYAr5H4V+ZtA3HFd TQDhyNkfXsiDve31qAneXyyqYM X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 9/7/22 15:50, Colin Ian King wrote: > The variable identical is being initialized with a value that is never > read. The variable is being re-assigned later on. The initialization is > redundant and can be removed. > > Cleans up clang scan-build warning: > drivers/video/fbdev/udlfb.c:373:6: warning: Value stored to 'identical' > during its initialization is never read [deadcode.DeadStores] > > Signed-off-by: Colin Ian King applied. Thanks! Helge > --- > drivers/video/fbdev/udlfb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/video/fbdev/udlfb.c b/drivers/video/fbdev/udlfb.c > index c863244ef12c..216d49c9d47e 100644 > --- a/drivers/video/fbdev/udlfb.c > +++ b/drivers/video/fbdev/udlfb.c > @@ -370,7 +370,7 @@ static int dlfb_trim_hline(const u8 *bback, const u8= **bfront, int *width_bytes) > const unsigned long *back =3D (const unsigned long *) bback; > const unsigned long *front =3D (const unsigned long *) *bfront; > const int width =3D *width_bytes / sizeof(unsigned long); > - int identical =3D width; > + int identical; > int start =3D width; > int end =3D width; >