UBI: remove duplicate IO error codes
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Thu, 2 Sep 2010 23:11:20 +0000 (02:11 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 19 Oct 2010 14:19:56 +0000 (17:19 +0300)
commit74d82d2660058e32644f0c673656b2a1d01d3688
tree8b90af4d6014ea50d74c504dc832cf3a9c3fff10
parent756e1df1d2b8b572a92dd1b82d2a432d5b280b1c
UBI: remove duplicate IO error codes

The 'UBI_IO_PEB_EMPTY' and 'UBI_IO_PEB_FREE' are essentially the same
and mean that there are only 0xFF bytes instead of headers. Simplify
UBI a little by turning them into a single 'UBI_IO_FF' error code.

Also, stop maintaining commentaries in 'ubi_io_read_vid_hdr()' which are
almost identical to commentaries in 'ubi_io_read_ec_hdr()'.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/io.c
drivers/mtd/ubi/scan.c
drivers/mtd/ubi/ubi.h
drivers/mtd/ubi/wl.c