OSDN Git Service

mtd: spi-nor: handle timeout errors in spi_nor_write()
authorBrian Norris <computersforpeace@gmail.com>
Thu, 7 Aug 2014 01:16:56 +0000 (18:16 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 5 Nov 2014 10:02:20 +0000 (02:02 -0800)
commit1d61dcb3ff5e4713d242a539947d8dd650ab3014
treed61febf46b37778e65a2eb7d524adb1fae5acc67
parent51983b7dcf3a50f4fdf6353235cd520e6c946e5a
mtd: spi-nor: handle timeout errors in spi_nor_write()

The error label was unused here. It looks like we're missing at least
one case that should be doing 'goto write_err'.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Acked-by: Huang Shijie <shijie8@gmail.com>
drivers/mtd/spi-nor/spi-nor.c