projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
923e211
)
mtd: mtdcore: Drop unused mtd_table
author
Tom Rini
<trini@konsulko.com>
Wed, 27 Nov 2019 01:41:00 +0000
(20:41 -0500)
committer
Tom 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
patch
|
blob
|
history
diff --git
a/drivers/mtd/mtdcore.c
b/drivers/mtd/mtdcore.c
index 89ac8229f5844a8786c8af38f27d9da57fef4281..dd04d676d56c37199fee42056484248d75c6c763 100644
(file)
--- 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 {