summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-11-27 04:41:00 +0300
committerTom Rini <trini@konsulko.com>2019-12-03 16:43:24 +0300
commit56e5a393464161f973dfe43745571a532b8c77d0 (patch)
tree14a0d49b4f26fd36438730232a6459222f1bec82
parent923e211f8d92d67caa93125f1aff2ae123c6b9d5 (diff)
downloadu-boot-56e5a393464161f973dfe43745571a532b8c77d0.tar.xz
mtd: mtdcore: Drop unused mtd_table
The array 'mtd_table' is unused in the code. Remove this as gcc doesn't always discard unused global variables. Signed-off-by: Tom Rini <trini@konsulko.com>
-rw-r--r--drivers/mtd/mtdcore.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c
index 89ac8229f5..dd04d676d5 100644
--- a/drivers/mtd/mtdcore.c
+++ b/drivers/mtd/mtdcore.c
@@ -76,8 +76,6 @@ static struct class mtd_class = {
.resume = mtd_cls_resume,
};
#else
-struct mtd_info *mtd_table[MAX_MTD_DEVICES];
-
#define MAX_IDR_ID 64
struct idr_layer {