diff options
author | z00189512 <abc.zhangliang@huawei.com> | 2016-03-29 14:41:19 -0400 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2016-05-24 09:24:20 -0400 |
commit | 960b35d06b6d6b377fd47a8a44e41a96f35ce485 (patch) | |
tree | 72960f19004f030a2d055f04f763e346e418e5a2 | |
parent | 1e0a74f10d76021988ecd9e34e6c0c65d1c5403e (diff) |
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>
-rw-r--r-- | drivers/mtd/ubi/kapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/kapi.c b/drivers/mtd/ubi/kapi.c index e844887732fb..cc6fa0115c9a 100644 --- a/drivers/mtd/ubi/kapi.c +++ b/drivers/mtd/ubi/kapi.c | |||
@@ -708,7 +708,7 @@ int ubi_leb_map(struct ubi_volume_desc *desc, int lnum) | |||
708 | struct ubi_volume *vol = desc->vol; | 708 | struct ubi_volume *vol = desc->vol; |
709 | struct ubi_device *ubi = vol->ubi; | 709 | struct ubi_device *ubi = vol->ubi; |
710 | 710 | ||
711 | dbg_gen("unmap LEB %d:%d", vol->vol_id, lnum); | 711 | dbg_gen("map LEB %d:%d", vol->vol_id, lnum); |
712 | 712 | ||
713 | if (desc->mode == UBI_READONLY || vol->vol_type == UBI_STATIC_VOLUME) | 713 | if (desc->mode == UBI_READONLY || vol->vol_type == UBI_STATIC_VOLUME) |
714 | return -EROFS; | 714 | return -EROFS; |