struct mtd_info member of_path is set but not used, remove it. Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- drivers/mtd/core.c | 1 - include/linux/mtd/mtd.h | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/mtd/core.c b/drivers/mtd/core.c index 1b1ed53a61..e21c71b816 100644 --- a/drivers/mtd/core.c +++ b/drivers/mtd/core.c @@ -706,7 +706,6 @@ int add_mtd_device(struct mtd_info *mtd, const char *devname, int device_id) dev_add_param_string(&mtd->dev, "partitions", mtd_partition_set, mtd_partition_get, &mtd->partition_string, mtd); if (IS_ENABLED(CONFIG_OFDEVICE) && np) { of_parse_partitions(&mtd->cdev, np); - mtd->of_path = xstrdup(np->full_name); ret = of_partitions_register_fixup(&mtd->cdev); if (ret) goto err1; diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index ee37dfd5cb..0e2ff4526d 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h @@ -248,7 +248,6 @@ struct mtd_info { struct list_head partitions_entry; char *partition_string; - char *of_path; unsigned int of_binding; }; -- 2.20.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox