Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1855497pxb; Mon, 18 Jan 2021 01:31:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJxDPrv6DW8vh34+I7ig2B0ABO4dDLo1mjaf2j7NDkwF0Etkt1Wd94i19CHRRQhoJwVZvuEk X-Received: by 2002:a17:906:f18c:: with SMTP id gs12mr5789255ejb.422.1610962286506; Mon, 18 Jan 2021 01:31:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610962286; cv=none; d=google.com; s=arc-20160816; b=fNXe9+mO0eftsnpTPTHN+5n4Ky/rrIP7osnjfqQI8siX0/LNQkaebVMC/ge3A8zieW Ot/vGIUUDTXd67fsov0GW8kpzMuCuKtbV+YkP6L0+54DUXOqzVk8+0gwWd6qQnry6TK2 ZaCcbTYgqK4wUxXbFNtZOnm/sQbCsOr89wx3tPBhSUXPTAmK9RqoC9JsdiBNLMYJrzO8 HLqwEwiyctkKWgnzy0SEKV/upg/f25noCQ1OKF4hA6VEd0njM5F1/Y8JY5EJR3qldXIZ LfCR0e3jEKvC8PiUf5CAwC22Ze7PMGL1QaauGA5oAh+Uox8H+LwgFTgjBEb8uzKcSFT6 kFvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=FAt89Fy+mBQWdx93DI5nTIeKSRs3/d11uIpe5WWdr/U=; b=OddJX7ob1Qvc6lI72jcxXBYvZheDHx8MdTwytgiESEqtwQeMYRRDbyAn1XOmbxkyJl nFw1hdfn/0iy23cnozwZlzPaVn60xbavGJyvFs1GtxbtORu3r+Fa99AqwgoUKQSAsyIC Kyfxz/4rHEqm/ZntYqscZFZmUwNukcW1HkL9vOLwbl+X/iEeyG16lG/1X9v0aCgSrYJ8 1PvnNCKKfyc03iiUhtQRZ+JtET1cO0iIt70IZR4St1gNxTX4U83hlAAn+oWz0aXbJSIK kPIEUYmHlQL8PpHJRhD8MhwJBMK1p6CFPJgWLQLk7wzM7QN7kKphaueLT7a5tFeglBp9 fUyQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w14si6914768eje.646.2021.01.18.01.31.03; Mon, 18 Jan 2021 01:31:26 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388728AbhARJXk (ORCPT + 99 others); Mon, 18 Jan 2021 04:23:40 -0500 Received: from elvis.franken.de ([193.175.24.41]:33126 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388503AbhARJSQ (ORCPT ); Mon, 18 Jan 2021 04:18:16 -0500 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1l1Qf1-0004jQ-00; Mon, 18 Jan 2021 10:17:19 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id 831F1C0584; Mon, 18 Jan 2021 09:40:02 +0100 (CET) Date: Mon, 18 Jan 2021 09:40:02 +0100 From: Thomas Bogendoerfer To: Souptick Joarder Cc: jiaxun.yang@flygoat.com, yangtiezhu@loongson.cn, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mips: cacheinfo: Remove unnecessary increment of level Message-ID: <20210118084002.GA5637@alpha.franken.de> References: <1610786400-3629-1-git-send-email-jrdr.linux@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1610786400-3629-1-git-send-email-jrdr.linux@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 16, 2021 at 02:10:00PM +0530, Souptick Joarder wrote: > kernel test robot throws below warning -> > > arch/mips/kernel/cacheinfo.c:112:3: warning: Variable 'level' is > modified but its new value is never used. [unreadVariable] > > Remove unnecessary increment of level at the end. > > Reported-by: kernel test robot > Signed-off-by: Souptick Joarder > --- > arch/mips/kernel/cacheinfo.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/arch/mips/kernel/cacheinfo.c b/arch/mips/kernel/cacheinfo.c > index 5f9d0eb..c858ae3 100644 > --- a/arch/mips/kernel/cacheinfo.c > +++ b/arch/mips/kernel/cacheinfo.c > @@ -109,7 +109,6 @@ static int __populate_cache_leaves(unsigned int cpu) > > if (c->tcache.waysize) { > populate_cache(tcache, this_leaf, level, CACHE_TYPE_UNIFIED); > - level++; please remove the no longer needed braces, too. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]