mtd: mtdcore: Drop unused mtd_table
authorTom Rini <trini@konsulko.com>
Wed, 27 Nov 2019 01:41:00 +0000 (20:41 -0500)
committerTom Rini <trini@konsulko.com>
Tue, 3 Dec 2019 13:43:24 +0000 (08:43 -0500)
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>
drivers/mtd/mtdcore.c

index 89ac822..dd04d67 100644 (file)
@@ -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 {