浏览代码

[MTD] Fix const assignment in the MTD command line partitioning driver

Fix const to non-const pointer assignment in the MTD command line partitioning
driver.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
David Howells 17 年之前
父节点
当前提交
36560d255b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/mtd/cmdlinepart.c

+ 1 - 1
drivers/mtd/cmdlinepart.c

@@ -306,7 +306,7 @@ static int parse_cmdline_partitions(struct mtd_info *master,
 	unsigned long offset;
 	unsigned long offset;
 	int i;
 	int i;
 	struct cmdline_mtd_partition *part;
 	struct cmdline_mtd_partition *part;
-	char *mtd_id = master->name;
+	const char *mtd_id = master->name;
 
 
 	/* parse command line */
 	/* parse command line */
 	if (!cmdline_parsed)
 	if (!cmdline_parsed)