mtd: spi-nor: Check the return value from read_sr()
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 20 Nov 2015 18:26:11 +0000 (16:26 -0200)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 10 Dec 2015 02:15:01 +0000 (18:15 -0800)
commitf49289ce64b7f7da4d7129666854b499b9d415eb
tree6250a3b53bba2773e54ef23f3229a136efca548b
parentadc83bf8896353603213754353dd66dae69e3d7f
mtd: spi-nor: Check the return value from read_sr()

We should better check the return value from read_sr() and
propagate it in the case of error.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/spi-nor/spi-nor.c