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)
commit617992069513c1e789c707c4d75ff03bf7dd0fb0
tree04ee36190d991f0b7836fff0a666b9847bf32d92
parent9d510db423303b4f3555074dd7bdd0d692e432a4
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