commit | d929a6ff68b415b503a6eef51b13b2487155fdba | [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 | 9e4893b6f808aadbdc8e9a9a02cf8b09dd6629d9 [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>