Skip to content

Commit

Permalink
[MTD] Fix const assignment in the MTD command line partitioning driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Howells authored and David Woodhouse committed Jul 11, 2008
1 parent 3a3688b commit 36560d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/cmdlinepart.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ static int parse_cmdline_partitions(struct mtd_info *master,
unsigned long offset;
int i;
struct cmdline_mtd_partition *part;
char *mtd_id = master->name;
const char *mtd_id = master->name;

/* parse command line */
if (!cmdline_parsed)
Expand Down

0 comments on commit 36560d2

Please sign in to comment.