]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: spi-nor-core: Check return value of write_disable() in spi_nor_erase()
authorMarek Behún <marek.behun@nic.cz>
Tue, 5 Oct 2021 13:56:00 +0000 (15:56 +0200)
committerJagan Teki <jagan@amarulasolutions.com>
Sat, 23 Oct 2021 10:17:33 +0000 (15:47 +0530)
commitf57277997bd8036d45337ec60b08a025a0473f89
tree74943a09c7087d1092d4b33e02c80a133bb3ad60
parenta9d9d412e00e246dbba2076ce3c11b7a5b542a76
mtd: spi-nor-core: Check return value of write_disable() in spi_nor_erase()

The cleanup code of spi_nor_erase() function calls write_disable(), but
does not return it's return value even in case of failure. Fix this.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Masami Hiramatsu <masami.hiramatsu@linaro.org>
drivers/mtd/spi/spi-nor-core.c