]> bbs.cooldavid.org Git - net-next-2.6.git/commit
UBI: remove bogus debugging checks
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 29 Jun 2009 12:58:36 +0000 (15:58 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 5 Jul 2009 15:47:05 +0000 (18:47 +0300)
commit1398788fe7b730db10e97dcb9f838603e41922d5
tree67edd2fb58aca4628c870679a39530838c8de76a
parent40a71a87fa8e0cb3ec0fca4d152263734b203eb2
UBI: remove bogus debugging checks

The 'paranoid_check_empty()' is bogus because, which is easilly
seen on NOR flash, which has long erase cycles, and which may
easilly end-up with half-erased eraseblocks. In this case the
paranoid check fails. I is just wrong to assume that PEBs which
do not have EC headers always contain all 0xFF. Such assumption
should not be made on the I/O level, which is quite low.

Thus, just kill the check.

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