提交 6951c585 编写于 作者: C Colin Ian King 提交者: Jiri Kosina

memstick: trivial fix of spelling mistake on management

fix spelling mistake, managment -> management in literal
strings, in a variable and a macro.
Signed-off-by: NColin Ian King <colin.king@canonical.com>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 e4cef28b
...@@ -1220,7 +1220,7 @@ static int msb_read_boot_blocks(struct msb_data *msb) ...@@ -1220,7 +1220,7 @@ static int msb_read_boot_blocks(struct msb_data *msb)
} }
if (extra.management_flag & MEMSTICK_MANAGEMENT_SYSFLG) { if (extra.management_flag & MEMSTICK_MANAGEMENT_SYSFLG) {
dbg("managment flag doesn't indicate boot block %d", dbg("management flag doesn't indicate boot block %d",
pba); pba);
continue; continue;
} }
...@@ -1367,7 +1367,7 @@ static int msb_ftl_initialize(struct msb_data *msb) ...@@ -1367,7 +1367,7 @@ static int msb_ftl_initialize(struct msb_data *msb)
static int msb_ftl_scan(struct msb_data *msb) static int msb_ftl_scan(struct msb_data *msb)
{ {
u16 pba, lba, other_block; u16 pba, lba, other_block;
u8 overwrite_flag, managment_flag, other_overwrite_flag; u8 overwrite_flag, management_flag, other_overwrite_flag;
int error; int error;
struct ms_extra_data_register extra; struct ms_extra_data_register extra;
u8 *overwrite_flags = kzalloc(msb->block_count, GFP_KERNEL); u8 *overwrite_flags = kzalloc(msb->block_count, GFP_KERNEL);
...@@ -1409,7 +1409,7 @@ static int msb_ftl_scan(struct msb_data *msb) ...@@ -1409,7 +1409,7 @@ static int msb_ftl_scan(struct msb_data *msb)
} }
lba = be16_to_cpu(extra.logical_address); lba = be16_to_cpu(extra.logical_address);
managment_flag = extra.management_flag; management_flag = extra.management_flag;
overwrite_flag = extra.overwrite_flag; overwrite_flag = extra.overwrite_flag;
overwrite_flags[pba] = overwrite_flag; overwrite_flags[pba] = overwrite_flag;
...@@ -1421,16 +1421,16 @@ static int msb_ftl_scan(struct msb_data *msb) ...@@ -1421,16 +1421,16 @@ static int msb_ftl_scan(struct msb_data *msb)
} }
/* Skip system/drm blocks */ /* Skip system/drm blocks */
if ((managment_flag & MEMSTICK_MANAGMENT_FLAG_NORMAL) != if ((management_flag & MEMSTICK_MANAGEMENT_FLAG_NORMAL) !=
MEMSTICK_MANAGMENT_FLAG_NORMAL) { MEMSTICK_MANAGEMENT_FLAG_NORMAL) {
dbg("pba %05d -> [reserved managment flag %02x]", dbg("pba %05d -> [reserved management flag %02x]",
pba, managment_flag); pba, management_flag);
msb_mark_block_used(msb, pba); msb_mark_block_used(msb, pba);
continue; continue;
} }
/* Erase temporary tables */ /* Erase temporary tables */
if (!(managment_flag & MEMSTICK_MANAGEMENT_ATFLG)) { if (!(management_flag & MEMSTICK_MANAGEMENT_ATFLG)) {
dbg("pba %05d -> [temp table] - will erase", pba); dbg("pba %05d -> [temp table] - will erase", pba);
msb_mark_block_used(msb, pba); msb_mark_block_used(msb, pba);
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
#define MEMSTICK_OV_PG_NORMAL \ #define MEMSTICK_OV_PG_NORMAL \
(MEMSTICK_OVERWRITE_PGST1 | MEMSTICK_OVERWRITE_PGST0) (MEMSTICK_OVERWRITE_PGST1 | MEMSTICK_OVERWRITE_PGST0)
#define MEMSTICK_MANAGMENT_FLAG_NORMAL \ #define MEMSTICK_MANAGEMENT_FLAG_NORMAL \
(MEMSTICK_MANAGEMENT_SYSFLG | \ (MEMSTICK_MANAGEMENT_SYSFLG | \
MEMSTICK_MANAGEMENT_SCMS1 | \ MEMSTICK_MANAGEMENT_SCMS1 | \
MEMSTICK_MANAGEMENT_SCMS0) \ MEMSTICK_MANAGEMENT_SCMS0) \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册