[PATCH] UBIFS: remove unnecessary code in ubifs_garbage_collect

Brian Norris computersforpeace at gmail.com
Mon Sep 16 21:51:05 EDT 2013


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>



More information about the linux-mtd mailing list