From: Artem Bityutskiy Date: Fri, 18 Mar 2011 16:11:42 +0000 (+0200) Subject: UBI: check if we are in RO mode in the erase routine X-Git-Tag: v2.6.39-rc3~20^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3efe509070e3d27e6d5dbc4bf8588e9453e9b949;p=pandora-kernel.git UBI: check if we are in RO mode in the erase routine 'do_sync_erase()' has to check whether we are in R/O mode before erasing the PEB. This patch adds the check and while on it, adds an assertion which validates the 'pnum' argument, as well as removes a check which is always true because it has already been done few lines before. Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed