diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-05-23 15:11:57 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-05-23 15:11:59 +0200 |
commit | d0088a75660a8c15a6a7b0aae2480cd5c4b8c8e5 (patch) | |
tree | a51e5ad0761f4791dd12c4f1accdca660033ad8f /common | |
parent | c4fb886fc73a995cff012e67e91d23ee3f4bde81 (diff) | |
download | barebox-d0088a75660a8c15a6a7b0aae2480cd5c4b8c8e5.tar.gz barebox-d0088a75660a8c15a6a7b0aae2480cd5c4b8c8e5.tar.xz |
imx-bbu-nand-fcb: return positive result when firmware needs cleanup
The caller of read_firmware() expects a positive return value when a
firmware is readable but needs a cleanup, so return 1 instead of
-EUCLEAN. Without this a firmware will never be refreshed.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/imx-bbu-nand-fcb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/imx-bbu-nand-fcb.c b/common/imx-bbu-nand-fcb.c index b4cd8f4202..9f9913fb57 100644 --- a/common/imx-bbu-nand-fcb.c +++ b/common/imx-bbu-nand-fcb.c @@ -1112,7 +1112,7 @@ err: if (need_cleaning) { pr_warn("Firmware at page %d needs cleanup\n", first_page); - return -EUCLEAN; + return 1; } return 0; |