Skip to content
Commit e71d1a59 authored by wang.bo116@zte.com.cn's avatar wang.bo116@zte.com.cn Committed by Artem Bityutskiy
Browse files

UBIFS: remove unnecessary code in ubifs_garbage_collect



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: default avatarwang bo <wang.bo116@zte.com.cn>
Acked-by: default avatarBrian Norris <computersforpeace@gmail.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
parent c23e9b75
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment