mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/1] mtd m25p80: fix bug - ATmel spi flash fails to be copied to - fix up
@ 2008-05-20  8:40 Bryan Wu
  0 siblings, 0 replies; only message in thread
From: Bryan Wu @ 2008-05-20  8:40 UTC (permalink / raw)
  To: akpm, linux-kernel; +Cc: Michael Hennerich, Bryan Wu

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-05-20  8:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-20  8:40 [PATCH 1/1] mtd m25p80: fix bug - ATmel spi flash fails to be copied to - fix up Bryan Wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®