Skip to content

Commit 36560d2

Browse files
dhowellsDavid Woodhouse
authored andcommitted
[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>
1 parent 3a3688b commit 36560d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/mtd/cmdlinepart.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ static int parse_cmdline_partitions(struct mtd_info *master,
306306
unsigned long offset;
307307
int i;
308308
struct cmdline_mtd_partition *part;
309-
char *mtd_id = master->name;
309+
const char *mtd_id = master->name;
310310

311311
/* parse command line */
312312
if (!cmdline_parsed)

0 commit comments

Comments
 (0)