]> git.baikalelectronics.ru Git - kernel.git/commit
UBIFS: clean up LEB recovery function
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 16 May 2011 10:41:55 +0000 (13:41 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 16 May 2011 12:48:48 +0000 (15:48 +0300)
commit04de41f854dfca643168146025784558990d0764
tree04ee36190d991f0b7836fff0a666b9847bf32d92
parent8d8befad2f3a6cf2be47cab993f5d6a859c8fd97
UBIFS: clean up LEB recovery function

This patch cleans up 'ubifs_recover_leb()' function and makes it more readable.
Move things which are done only once out of the loop and kill unneeded 'switch'
statement.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
fs/ubifs/recovery.c