From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] mtd: mtdcore: Drop unused mtd_table
Date: Tue, 26 Nov 2019 20:41:00 -0500 [thread overview]
Message-ID: <20191127014100.29733-2-trini@konsulko.com> (raw)
In-Reply-To: <20191127014100.29733-1-trini@konsulko.com>
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 | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c
index 89ac8229f584..dd04d676d56c 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 {
--
2.17.1
next prev parent reply other threads:[~2019-11-27 1:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-27 1:40 [U-Boot] [PATCH 1/2] pci: Only link pci_rom.o in some cases Tom Rini
2019-11-27 1:41 ` Tom Rini [this message]
2019-12-04 4:02 ` [U-Boot] [PATCH 2/2] mtd: mtdcore: Drop unused mtd_table Tom Rini
2019-12-04 4:02 ` [U-Boot] [PATCH 1/2] pci: Only link pci_rom.o in some cases Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191127014100.29733-2-trini@konsulko.com \
--to=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox