RE: [PATCH 1/1] mtd m25p80: fix bug - ATmel spi flash fails to becopied to

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Hennerich, Michael
Date: Wednesday, June 4, 2008 - 10:20 am

David,

Bryan sent an incremental update patch, some time ago.
See below ...

Regards,
Michael

From: Michael Hennerich <michael.hennerich@analog.com>

remove duplicate code.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
---
 drivers/mtd/devices/m25p80.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
index b10649b..7f89b54 100644
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -122,8 +122,6 @@ static int write_sr(struct m25p *flash, u8 val)
 	flash->command[0] = OPCODE_WRSR;
 	flash->command[1] = val;
 
-	spi_write(flash->spi, flash->command, 2);
-
 	return spi_write(flash->spi, flash->command, 2);  }
 
--
1.5.5

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
RE: [PATCH 1/1] mtd m25p80: fix bug - ATmel spi flash fail ..., Hennerich, Michael, (Mon May 19, 2:12 am)
RE: [PATCH 1/1] mtd m25p80: fix bug - ATmel spi flash fail ..., Hennerich, Michael, (Wed Jun 4, 10:20 am)