[source] bcm53xx: fix warning caused by m25p80 patch

LEDE Commits lede-commits at lists.infradead.org
Tue Aug 16 08:14:51 PDT 2016


rmilecki pushed a commit to source.git, branch master:
https://git.lede-project.org/?p=source.git;a=commitdiff;h=58466208909d5b9264537256b353b3c3db57ef0e

commit 58466208909d5b9264537256b353b3c3db57ef0e
Author: Rafał Miłecki <rafal at milecki.pl>
AuthorDate: Tue Aug 16 17:11:09 2016 +0200

    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 at milecki.pl>
---
 .../406-mtd-m25p80-use-single-SPI-message-for-writing-data.patch   | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/target/linux/bcm53xx/patches-4.4/406-mtd-m25p80-use-single-SPI-message-for-writing-data.patch b/target/linux/bcm53xx/patches-4.4/406-mtd-m25p80-use-single-SPI-message-for-writing-data.patch
index 1a3fc31..d5525f6 100644
--- a/target/linux/bcm53xx/patches-4.4/406-mtd-m25p80-use-single-SPI-message-for-writing-data.patch
+++ b/target/linux/bcm53xx/patches-4.4/406-mtd-m25p80-use-single-SPI-message-for-writing-data.patch
@@ -21,7 +21,7 @@ Signed-off-by: Rafał Miłecki <zajec5 at gmail.com>
 
 --- a/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 spi_device *spi = flash->spi;
@@ -29,10 +29,7 @@ Signed-off-by: Rafał Miłecki <zajec5 at gmail.com>
  	struct spi_transfer t[2] = {};
  	struct spi_message m;
  	int cmd_sz = m25p_cmdsz(nor);
-+	int i;
- 
- 	spi_message_init(&m);
- 
+@@ -87,20 +88,19 @@ static void m25p80_write(struct spi_nor
  	if (nor->program_opcode == SPINOR_OP_AAI_WP && nor->sst_write_second)
  		cmd_sz = 1;
  



More information about the lede-commits mailing list