Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2253684ybd; Thu, 27 Jun 2019 09:14:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqzN6xBnONBnl4IkZwqMoMjJFHVQnk8noF9IylaC+tEEHLjFRU2uVh06WnvjhwwEc8x0tGEi X-Received: by 2002:a17:90a:9f0b:: with SMTP id n11mr6843084pjp.98.1561652076551; Thu, 27 Jun 2019 09:14:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561652076; cv=none; d=google.com; s=arc-20160816; b=pFo4kPTt+jy0/2TbUWRIWySbeuBdgqcXeMjr9aNhxHBEydKBAwrS7ZM1TyiKqe8ra2 DXiqEam2iVE3hraJbzea+1U2wSVy93oCW3MmfUwXgzuoH/1SvJtbN1qMrFRJJfAX7RsB mqQVQ3c/d08Djg7p9vlnZCF0pjxrWWXfqUKCgC6m0GwQHPi+LwlzL623gwcZ+DOi6Zsc cgVoA7hNfARQ2Az7VYIaybn9SZLBGSpoWxu5Hdgr0g1GCHgIhXUsCgAqHKkttYggw8QT VrBYbQNbIIxTHpGh/P75Ib1EWMmN/Agr4dUDQLEbB1LuuUJD19drvw+vCj0I0GWQA8PV KxGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=YuETa3oDVUrfM1AlnG0XabGhzbNGHx9EIaL7BfD2Dwk=; b=FVdGw2vrVuahCrXcPJuSKLyXgqqWqBXfEIll7v2obFtWYTsM6lyTfEk9Hj8KQPUhJc QK01l8JLipcceqmT2CksFs0N52hPvcLDb/i7sIsO8Adjc7mK/jKTJ0b/8MZRHtHL/SBf hg9GyYQ5gYccdWwrOp75WLm3d9/rCc10YmWZAa4/uors5ZLw4+GLknBKMYvLpa9AeVkW gXP3YfbslokoNJeQRfJ40QzBMj0zD0Z+MouZscrN92UcYrRKWUgCcG1Arc7H7s2VL6Gf Ur6gg3nfVH5Ysfg3ON0pIoAeyK2ZLpNowf4dNWudG4uESs7emMu8kHnOJcW5hZJfy9Pj hdQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=CbXK4cnl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k128si2495470pgc.459.2019.06.27.09.14.20; Thu, 27 Jun 2019 09:14:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=CbXK4cnl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726545AbfF0QN6 (ORCPT + 99 others); Thu, 27 Jun 2019 12:13:58 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:40004 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726384AbfF0QN6 (ORCPT ); Thu, 27 Jun 2019 12:13:58 -0400 Received: by mail-io1-f66.google.com with SMTP id n5so5978313ioc.7 for ; Thu, 27 Jun 2019 09:13:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=YuETa3oDVUrfM1AlnG0XabGhzbNGHx9EIaL7BfD2Dwk=; b=CbXK4cnlfsLqgcWbk9J1O19cC7jqM5R1GyFC5RXTsmRqwoUEV2NJ9LPi2EmzXe+1vG qCoPj1cMOEmcGu7KLw8WXb3lc/xVqslxMXana0Sg4KkAdtyQUoLcgGJ7QdndwmAR188i 8DcpkgAbLey+JqExVPrENeLIes2OsFyyBDyedRY3g3n6pmy8gKn7GuNEHTTBhGBZBNh9 bPMLkc/2qSQ8GfEfUbzTK7euEZicmfeApx6Ym7qA9lay+DlWcKVsFYcKuE5E8I6BLdiG M+chfQoe+Vq9l2wmRUZRlBOEZeQhj9ljVpVNOQyC15iPt4MJWD1zPw60BZIChkPn2p5Q hSIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=YuETa3oDVUrfM1AlnG0XabGhzbNGHx9EIaL7BfD2Dwk=; b=FHqE+d+licZK84amZfWmlhelY8XbPrzEUxPS+U+i0xwY0HwZnu12UlAX3Yb9bjI6q6 HtwVfbfyLdpGVtq2Ef7re+wtaesvxpTrjM7ymTLozfuQpMr5ch0xhHpgXeboYuG6Z62z nzyvzqLgglJMP1FeKwdmU8Oinv65QpTXFREOektyXpK38JZT6wnwtHHsFW3wB5usb9Cb TNw2/Z+uX2auDBJpvSzOZQhBAVZLXL1yy4FF+SpoX0NXaHx88B0YcO9hbyRPshwjUI2b BlBzPnbQfl6xtenKlRT0NsvOQ6WlzAASziTi/sMsIgjU6TzBK8PCiJb/zOqq8IF7jtWH r/Iw== X-Gm-Message-State: APjAAAW4rZ1Yt1ufg1jF8iu2tEtGb/W5K3fQcldUamGbJXBN6VnwnuF3 iB6A+eBrUR/tJDnH1XVveV8Jwq0NPFo= X-Received: by 2002:a05:6638:3d6:: with SMTP id r22mr5561768jaq.71.1561652037218; Thu, 27 Jun 2019 09:13:57 -0700 (PDT) Received: from localhost (c-73-95-159-87.hsd1.co.comcast.net. [73.95.159.87]) by smtp.gmail.com with ESMTPSA id p3sm2749248iog.70.2019.06.27.09.13.56 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 27 Jun 2019 09:13:56 -0700 (PDT) Date: Thu, 27 Jun 2019 09:13:55 -0700 (PDT) From: Paul Walmsley X-X-Sender: paulw@viisi.sifive.com To: Yash Shah cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, palmer@sifive.com, aou@eecs.berkeley.edu, sachin.ghadi@sifive.com Subject: Re: [PATCH] riscv: ccache: Remove unused variable In-Reply-To: <1561624486-22867-1-git-send-email-yash.shah@sifive.com> Message-ID: References: <1561624486-22867-1-git-send-email-yash.shah@sifive.com> User-Agent: Alpine 2.21.9999 (DEB 301 2018-08-15) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 27 Jun 2019, Yash Shah wrote: > Reading the count register clears the interrupt signal. Currently, the > count registers are read into 'regval' variable but the variable is > never used. Therefore remove it. > > Signed-off-by: Yash Shah This is a good start. Could you also add comments in the code that describe what those reads are doing, as you did in the patch description? Otherwise they look pretty mysterious. - Paul