mtd: spi-nor: don't overwrite errno in spi_nor_get_map_in_use()
authorTudor.Ambarus@microchip.com <Tudor.Ambarus@microchip.com>
Fri, 9 Nov 2018 16:56:52 +0000 (16:56 +0000)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Tue, 13 Nov 2018 19:37:34 +0000 (20:37 +0100)
commitb9f07cc8207a2a69496beec3f5a5a8372bacdfdc
tree1b3836be5f62e76deef471faea9834daf8d0dd80
parentc797bd81d10e648ec8c84c041191527113e63e85
mtd: spi-nor: don't overwrite errno in spi_nor_get_map_in_use()

Don't overwrite the errno from spi_nor_read_raw().

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/spi-nor/spi-nor.c