[PATCH] UBIFS: remove unnecessary code in ubifs_garbage_collect
Ezequiel Garcia
ezequiel.garcia at free-electrons.com
Sat Oct 19 06:27:49 PDT 2013
(Ccing Artem who might have missed this one)
On Mon, Sep 16, 2013 at 06:51:05PM -0700, Brian Norris wrote:
> On Fri, Aug 16, 2013 at 03:43:36PM +0800, wang.bo116 at zte.com.cn wrote:
> > Hi,
> > In ubifs_garbage_collect,local variable "space_before" calculate twice. In fact, at the
> > beginning of the loop, there is no need to calculate this variable. Calculate it before call
> > "ubifs_garbage_collect_leb" is enough. This patch just remove the unnecessary calculate code.
> >
> >
> >
> > Signed-off-by: wang bo <wang.bo116 at zte.com.cn>
>
> Acked-by: Brian Norris <computersforpeace at gmail.com>
>
--
Ezequiel García, Free Electrons
Embedded Linux, Kernel and Android Engineering
http://free-electrons.com
More information about the linux-mtd
mailing list