[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <49033492.RPiX3hNQUc@blindfold>
Date: Thu, 01 Mar 2018 17:26:19 +0100
From: Richard Weinberger <richard@....at>
To: Liu Song <liu.song11@....com.cn>
Cc: dedekind1@...il.com, adrian.hunter@...el.com,
linux-mtd@...ts.infradead.org, linux-kernel@...r.kernel.org,
jiang.biao2@....com.cn, zhong.weidong@....com.cn
Subject: Re: [PATCH] fs/UBIFS: make 'sum' definition closer to where it is used
Am Mittwoch, 28. Februar 2018, 03:42:03 CET schrieb Liu Song:
> Local var sum is only used in one branch, and it may be not used if
> it is defined outside the branch. Try to move the definition into
> the branch to make it closer to where it is actually used.
Does this fix a problem?
I'm not a huge fan of defining variables in the middle of functions unless it
makes the code really better.
Thanks,
//richard
Powered by blists - more mailing lists