Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2866537ybd; Thu, 27 Jun 2019 21:56:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWCatG3rvSCC18/FJXzcYRZaRfOa1JGliBKFiBoN48+55dZOmY7VRvUhA3v19O/50+6wv+ X-Received: by 2002:a17:902:e6:: with SMTP id a93mr9083891pla.175.1561697810121; Thu, 27 Jun 2019 21:56:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561697810; cv=none; d=google.com; s=arc-20160816; b=R75OI5jLuNZ8YoaKVIHV5wHHyPvZyEloxFTLR4g6KdjNsJDmJWp6jK+tav51108pfi k2gFd8YZSJXtpEnA1IdSInLVCQU/W/jntipoN3SQSiWAF+nxGmWKWyIUX02TMqT2M4QU 9tLLJQ5L+s78QNkpJL4o44fZklPGoK3fG3ebXNVDkN9HJRl1tkFi0t0z6/1CAUAcHZ6x pR1nhBMeAf8K6ddhA41udqc4QF1Rk3B+ld2exDARXSVg45dk4zXd7y1hDb2LcF51s2SA +c6lrY+ooK8wkJ7uoVzcOhiL0N61zF58sPQs454wJJiPxXUFtvnevHP838KonWSSBbyI XLQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Volcz+38jFTPOHhlSCwFUXULczOSSWdKlXjynAvXZDg=; b=nr5qYJjB8SZE2PnvV3oA8w9AcNECbLn/ZM8RR0FKhnBG7jF7PX4deaqnrrD5VetsOp cCH3naDxAsD+vRKGwNmkEIfYWLqrlAtSf0kypdoHEHId8xUbMkWHWbCYU1DXOm6tYirs JGs3SOWbimfCxb4fL2Y41wf2giDzh/Q81COO0AmFS5gQRwaQ5UPn0lX6e20g+0rgWF1z Ttyisa4QivUEktj63kmjrDCG7JbKGhOkzrXj9DuakGT3Vma4r95L71BwCjP5TYrddeRc rITbClfYH6X0/QxNDbOIzJvlIVWth8E+yRfNndKg+dJ7o0v/dRq2GGjDKdYPcYUiunZR fdNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=PlfixOl+; 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 l24si1227517pff.185.2019.06.27.21.56.33; Thu, 27 Jun 2019 21:56:50 -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=PlfixOl+; 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 S1726572AbfF1E40 (ORCPT + 99 others); Fri, 28 Jun 2019 00:56:26 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:40865 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725783AbfF1E40 (ORCPT ); Fri, 28 Jun 2019 00:56:26 -0400 Received: by mail-lf1-f66.google.com with SMTP id a9so3073957lff.7 for ; Thu, 27 Jun 2019 21:56:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Volcz+38jFTPOHhlSCwFUXULczOSSWdKlXjynAvXZDg=; b=PlfixOl+QPoGMyaFe2Hbgr7TdZEGndH1m9uWyDNz30knzSu4v0OqSV1jZjRpegQuon JyW7CENbD7XnwFyJzLjt84XB2fT/64UHTpHcz/E/9dtFSysS0SqOPgXDb8HS47OX1f89 K8pPh311m/Yv1NK8pQ5/b/UADCH/nk1O0ChludFMf1bWhV+8jfnnNXjnknGTJSleKP8q Obcx3GVTQTRUpERYC/FPi+iZrZEOP2o38tbH0QU5v2dbZQeW8lGL3QzeinimF1gOc14F Px8jxHBHiXyRcuuWyi/itTtAWe6QbrGaajI4wjEzxDS5mChRAIFYbd3ENwM0OxiD0mpW HM6A== 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=Volcz+38jFTPOHhlSCwFUXULczOSSWdKlXjynAvXZDg=; b=H2E3Xfa5Be5SVKCrqib8vDp+DPf6K9rx6u3onsAcQ9XBSeydKMZqs9rtFYmf6wMDrk ssPOE84d2zJybDxuukvHPB2rbuuzRSW50hZ7drHoGHojgKxrRJFZyi8aBNtCQfNBDL8K X7WLh4H0NaVnZIjoKIlXDCTcMis5VqKoyMkXY47vMWy/20RNF7Vlx5ltMsH3lTifgzg6 gV7B7hzQdIU+BmZoFBg3VSIbIfwLpwrJcqPDi1Q8GTDIf8D6xIvLSko0EZaOLwV/Csiv RRJhJ9y+PFgAFvtk0wgt4Q20YiWYKu+yNDRjbElf3grMGufzAMhScWEvwVv0dmH8LUE5 Kgnw== X-Gm-Message-State: APjAAAWCF2XzKYEC+HlfdgMj0uuOLbILJxuMYMsPxvvI0c2BusFoHntf o9rhXfCGkHOaC/6cjqh4tgwkap1tDUSQWk5Xh5oDaQ== X-Received: by 2002:a19:6602:: with SMTP id a2mr3799436lfc.25.1561697784041; Thu, 27 Jun 2019 21:56:24 -0700 (PDT) MIME-Version: 1.0 References: <1561624486-22867-1-git-send-email-yash.shah@sifive.com> In-Reply-To: From: Yash Shah Date: Fri, 28 Jun 2019 10:25:47 +0530 Message-ID: Subject: Re: [PATCH] riscv: ccache: Remove unused variable To: Paul Walmsley Cc: linux-riscv@lists.infradead.org, "linux-kernel@vger.kernel.org List" , Palmer Dabbelt , Albert Ou , Sachin Ghadi Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 27, 2019 at 9:43 PM Paul Walmsley wrote: > > 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. > Sure, will add comments and send v2 > > - Paul