bcm53xx: fix warning caused by m25p80 patch

It was adding unused variable:
drivers/mtd/devices/m25p80.c: In function 'm25p80_write':
drivers/mtd/devices/m25p80.c:85:6: warning: unused variable 'i' [-Wunused-variable]
  int i;
      ^

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
This commit is contained in:
Rafał Miłecki 2016-08-16 17:11:09 +02:00
parent 09b9dd730c
commit 5846620890

View File

@ -21,7 +21,7 @@ Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
--- a/drivers/mtd/devices/m25p80.c --- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c +++ b/drivers/mtd/devices/m25p80.c
@@ -78,29 +78,30 @@ static void m25p80_write(struct spi_nor @@ -78,6 +78,7 @@ static void m25p80_write(struct spi_nor
{ {
struct m25p *flash = nor->priv; struct m25p *flash = nor->priv;
struct spi_device *spi = flash->spi; struct spi_device *spi = flash->spi;
@ -29,10 +29,7 @@ Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
struct spi_transfer t[2] = {}; struct spi_transfer t[2] = {};
struct spi_message m; struct spi_message m;
int cmd_sz = m25p_cmdsz(nor); int cmd_sz = m25p_cmdsz(nor);
+ int i; @@ -87,20 +88,19 @@ static void m25p80_write(struct spi_nor
spi_message_init(&m);
if (nor->program_opcode == SPINOR_OP_AAI_WP && nor->sst_write_second) if (nor->program_opcode == SPINOR_OP_AAI_WP && nor->sst_write_second)
cmd_sz = 1; cmd_sz = 1;