mtd: mchp23k256: propagate return value of spi_sync()
authorAntonio Borneo <borneo.antonio@gmail.com>
Sun, 10 Dec 2017 15:19:56 +0000 (16:19 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Sun, 17 Dec 2017 08:10:14 +0000 (09:10 +0100)
commitdb601f3ad3f7e0e8acac230c658aa434f26e48cd
treeb48a76202457ff8c57c330e2f78af4158e21509b
parentbf6571057f0830ab5132be8b6045d2677baad281
mtd: mchp23k256: propagate return value of spi_sync()

The call to spi_sync() can fail.
Check the return value and propagate it.

Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/devices/mchp23k256.c