Skip to contentSkip to conversation

mtd m25p80: fix bug - ATmel spi flash fails to be copied to - fix up

PATCH New Bryan Wu 1 participant 1 message May 20, 2008 Memory technology devices (MTD)

lore
Share & tools
lore

Bryan Wu

author
#0 lore raw

PATCH 1/1 mtd m25p80: fix bug - ATmel spi flash fails to be copied to - fix up

From: Michael Hennerich <[email protected]>

remove duplicate code.

---
 drivers/mtd/devices/m25p80.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/mtd/devices/m25p80.c +0 -2
index b10649b..7f89b54 100644
@@ -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);
 }
 
Signature · 1 line
1.5.5