From: shenghui Subject: Re: dm writecache: remove unused variable sz in writecache_status Date: Thu, 25 Oct 2018 14:51:52 +0800 Message-ID: <1971.64114001698$1540454873@news.gmane.org> References: <20181025023832.9766-1-shhuiw@foxmail.com> <20181025034630.GA17401@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20181025034630.GA17401@redhat.com> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Mike Snitzer Cc: dm-devel@redhat.com, mpatocka@redhat.com, agk@redhat.com List-Id: dm-devel.ids On 10/25/2018 11:46 AM, Mike Snitzer wrote: > On Wed, Oct 24 2018 at 10:38pm -0400, > Shenghui Wang wrote: > >> sz defined but not used in writecache_status. Remove it. >> >> Signed-off-by: Shenghui Wang >> --- >> drivers/md/dm-writecache.c | 1 - >> 1 file changed, 1 deletion(-) >> >> diff --git a/drivers/md/dm-writecache.c b/drivers/md/dm-writecache.c >> index 5f1f80d424dd..562c32f644b8 100644 >> --- a/drivers/md/dm-writecache.c >> +++ b/drivers/md/dm-writecache.c >> @@ -2226,7 +2226,6 @@ static void writecache_status(struct dm_target *ti, status_type_t type, >> { >> struct dm_writecache *wc = ti->private; >> unsigned extra_args; >> - unsigned sz = 0; >> uint64_t x; >> >> switch (type) { > > Have you even compile tested this patch? > > DMEMIT implicitly uses sz. Not saying I like this, but it is what it > is. > > Nacked-by: Mike Snitzer > Sorry. Regards, shenghui >