mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-02 18:17:50 -04:00
UBI: Modify wrong comment in ubi_leb_map function.
Signed-off-by: z00189512 <abc.zhangliang@huawei.com> Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
committed by
Richard Weinberger
parent
1e0a74f10d
commit
960b35d06b
@@ -708,7 +708,7 @@ int ubi_leb_map(struct ubi_volume_desc *desc, int lnum)
|
|||||||
struct ubi_volume *vol = desc->vol;
|
struct ubi_volume *vol = desc->vol;
|
||||||
struct ubi_device *ubi = vol->ubi;
|
struct ubi_device *ubi = vol->ubi;
|
||||||
|
|
||||||
dbg_gen("unmap LEB %d:%d", vol->vol_id, lnum);
|
dbg_gen("map LEB %d:%d", vol->vol_id, lnum);
|
||||||
|
|
||||||
if (desc->mode == UBI_READONLY || vol->vol_type == UBI_STATIC_VOLUME)
|
if (desc->mode == UBI_READONLY || vol->vol_type == UBI_STATIC_VOLUME)
|
||||||
return -EROFS;
|
return -EROFS;
|
||||||
|
|||||||
Reference in New Issue
Block a user