From: Michael Hennerich remove duplicate code. Signed-off-by: Michael Hennerich Signed-off-by: Bryan Wu Cc: David Woodhouse Signed-off-by: Andrew Morton --- drivers/mtd/devices/m25p80.c | 2 -- 1 file changed, 2 deletions(-) diff -puN drivers/mtd/devices/m25p80.c~mtd-m25p80-fix-bug-atmel-spi-flash-fails-to-be-copied-to-fix-up drivers/mtd/devices/m25p80.c --- a/drivers/mtd/devices/m25p80.c~mtd-m25p80-fix-bug-atmel-spi-flash-fails-to-be-copied-to-fix-up +++ a/drivers/mtd/devices/m25p80.c @@ -122,8 +122,6 @@ static int write_sr(struct m25p *flash, flash->command[0] = OPCODE_WRSR; flash->command[1] = val; - spi_write(flash->spi, flash->command, 2); - return spi_write(flash->spi, flash->command, 2); } _