commit | a9d9d412e00e246dbba2076ce3c11b7a5b542a76 | [log] [tgz] |
---|---|---|
author | Marek BehĂșn <marek.behun@nic.cz> | Tue Oct 05 15:55:59 2021 +0200 |
committer | Jagan Teki <jagan@amarulasolutions.com> | Sat Oct 23 15:47:33 2021 +0530 |
tree | cd3aa28c934dfbfb0a484b51e0992ef1a4cacefc | |
parent | 5ea6dccee45ab941cfc78fbbfd9600ef24c5ca60 [diff] |
mtd: spi-nor-core: Don't overwrite return value if it is non-zero The cleanup code of the spi_nor_erase() function overwrites the ret variable with return value of clean_bar(), even if the ret variable is already set. 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>