Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4743682pxy; Tue, 27 Apr 2021 11:33:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuwp8btlTUn+zvbTW+1qFOAnx+Gwhd+sBAJq5yj8u9xnvN+LEbov1cqE064eBnwESMum33 X-Received: by 2002:a17:906:4b49:: with SMTP id j9mr3344781ejv.454.1619548390453; Tue, 27 Apr 2021 11:33:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619548390; cv=none; d=google.com; s=arc-20160816; b=DdCIDZ8ebmd+TyiMeR5SPd3y4JZKGX+X22B/eqkW1mvZqnFZzCuhlZAqJIwTbmrNpc oiIfNZbfy/SGAMeh8ucYF7HGmWQYjHB/rc1oBra/vk9fhSnHJp+OgE14eYzADS6XkwB1 0MgHZazuxJ4kravpBJYKQxHGZ3uvrXl4lrTDxI1zrjh2JkD8liTm2T010rzDQ1FyB/HW KNY4tXYmGaR+XlQCtqnR67DGeFR6fJMydYqOuLJ/ziyNZ4RZArkSXjEwjTL1JM4uLiuz E+QPO4+NXa7JBWwT1JvVAyfmqSYYnCNEBoariDUo1Tz9UkwQSVH4FfpKRXBiHWk5yXsi QBig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=yP8Pg85AED61BqhqzNQSCQ0faSITOU8hZLsSfGgXVOI=; b=GIBZ9HXlags2ymS+/XVuYFSagFYUUfZmVwXQoV+9Vf54ZGzI8aL/FLnowcCKSsOtUE Sf4F1w8KqdxJ38Dzbbm4Thwnl8riq+HoMmEdtS9sB+ackOXNu7/hcDW/0kLUECxWzHfQ 4wnqg3otl3o7zgmkk/4dg583sEDqZbYbgIvaTa2EaDkUud/Ez8vx7C+g2eWVrEaY4kYT 31uRkfJB6PlbFjRWiH0ObVA5VxZriX32KRnYECicv4L8RBUy1Ics4Hl6Sw4n4YV3DPim ofQfGJXpFVVpjiNSx9+n+eQdouK8jyrlh2ZHf9ScvjPV26pRZK/POLJZP0yelXhw2A3e I3dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=Fy0hFkhH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jg13si646203ejc.430.2021.04.27.11.32.46; Tue, 27 Apr 2021 11:33:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=Fy0hFkhH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237942AbhD0Scc (ORCPT + 99 others); Tue, 27 Apr 2021 14:32:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236279AbhD0Sca (ORCPT ); Tue, 27 Apr 2021 14:32:30 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC907C061574; Tue, 27 Apr 2021 11:31:45 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id n2so90871909ejy.7; Tue, 27 Apr 2021 11:31:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yP8Pg85AED61BqhqzNQSCQ0faSITOU8hZLsSfGgXVOI=; b=Fy0hFkhHdXOk6yDtyoFq2hpSjC2aPWKhwCUYU4Ngri+zPpxVzbpyewbCqH3tjAkYbq 5S8mka9eS6l+NXKKHoWG1iHDryXEx4R2QbJetJE5k6O50085xzoUwcNZOjri6P/lGsBs 6JJ8Fzjavcm+8S/wfKBz13ODN4crmC4es63WQug0kl7D2TJeofmlbj5wLY5z1M5DqLIL SZG+sHGcDVqFrLEGGVrMOnW2Zrq9sX/NLH737S2vncdlREg0/yu2VD2zVNIJvATYEZeg vj3aOqpICxCKlUrUufYUBN99s7ux4VYxk3qk/km3vALkxhGTQVRYRD6S549mn9GBBYFR rMQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yP8Pg85AED61BqhqzNQSCQ0faSITOU8hZLsSfGgXVOI=; b=Kn1cHmQZElgBxwvaqupIJ97T8piNwkpjzh9/0erbecWNhG11n/w1aEjPkqTiGeeQnG utV5vxCM/ineUxwDL7GV0B+BRNO4Q8rVS1/Bfffp6R5XbLIt92usz8NKwn6pdoprwNUN Fk/zjeqme+IAmBQKLxpmisIj7aIAr4j29SAI33hmkNhyXVSWJWeyPMtdmeuA+15+DmVk JR82dM2djTiWgPJtm/CFl/+uyUtrEJnQjUaZjkgTiGVN+fc+7xP5uaH0ua/1cT2ioHEC NudjbAPJ7b+v+WjetL8d/fcO1xCrV0GDh+7MavhdjJGWEkaiMCtNv5Bb5PidSl9ftjwp 1rxA== X-Gm-Message-State: AOAM53027e+kgBv5x2sD+j4BOhCy2ljC8wHmICh9TFbJPY3JKaaMlyO5 GW/NzFttDmzOIy7aKTdd7ub1XbGhnByZJcWVx9w= X-Received: by 2002:a17:907:765b:: with SMTP id kj27mr9390423ejc.537.1619548304673; Tue, 27 Apr 2021 11:31:44 -0700 (PDT) MIME-Version: 1.0 References: <20210426101106.9122-1-colin.king@canonical.com> In-Reply-To: <20210426101106.9122-1-colin.king@canonical.com> From: Martin Blumenstingl Date: Tue, 27 Apr 2021 20:31:33 +0200 Message-ID: Subject: Re: [PATCH] serial: meson: remove redundant initialization of variable id To: Colin King Cc: Greg Kroah-Hartman , Jiri Slaby , Kevin Hilman , Neil Armstrong , Jerome Brunet , linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 26, 2021 at 12:11 PM Colin King wrote: > > From: Colin Ian King > > The variable id being initialized with a value that is never read > and it is being updated later with a new value. The initialization is > redundant and can be removed. Since id is just being used in a for-loop > inside a local scope, move the declaration of id to that scope. > > Addresses-Coverity: ("Unused value") > Signed-off-by: Colin Ian King Reviewed-by: Martin Blumenstingl