From: Boris Brezillon Date: Fri, 1 Jun 2018 10:03:24 +0000 (+0200) Subject: mtd: m25p80: Remove unneeded m25p->command field X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=00a5762b45250ebde8920d3cf68ca3974a0253b2;p=openwrt%2Fstaging%2Fblogic.git mtd: m25p80: Remove unneeded m25p->command field The ->command field is no longer used, remove it. Signed-off-by: Boris Brezillon Acked-by: Marek Vasut --- diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c index e84563d2067f..3fc5ef4ebb16 100644 --- a/drivers/mtd/devices/m25p80.c +++ b/drivers/mtd/devices/m25p80.c @@ -28,11 +28,9 @@ #include #include -#define MAX_CMD_SIZE 6 struct m25p { struct spi_mem *spimem; struct spi_nor spi_nor; - u8 command[MAX_CMD_SIZE]; }; static int m25p80_read_reg(struct spi_nor *nor, u8 code, u8 *val, int len)