diff options
author | Teresa Remmet <t.remmet@phytec.de> | 2018-08-28 09:32:50 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-08-29 08:56:51 +0200 |
commit | 7daba4205afd1cffe690aee1f6857b5fb3566e14 (patch) | |
tree | ec23daa601849d333a0f160b67f12e51ed947d5d /arch/arm/mach-omap | |
parent | 7b24d3240adc096414b40ad462e14fc14efd537f (diff) | |
download | barebox-7daba4205afd1cffe690aee1f6857b5fb3566e14.tar.gz barebox-7daba4205afd1cffe690aee1f6857b5fb3566e14.tar.xz |
arm: mach-omap: bbu_emmc: Fix return value
Update handler returned the written bytes of the partition table on success
instead of 0. Return 0 or error code now.
Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-omap')
-rw-r--r-- | arch/arm/mach-omap/am33xx_bbu_emmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap/am33xx_bbu_emmc.c b/arch/arm/mach-omap/am33xx_bbu_emmc.c index d3adb3744c..1fd7222ddc 100644 --- a/arch/arm/mach-omap/am33xx_bbu_emmc.c +++ b/arch/arm/mach-omap/am33xx_bbu_emmc.c @@ -73,7 +73,7 @@ error_save_part_table: error: close(fd); - return ret; + return (ret > 0) ? 0 : ret; } int am33xx_bbu_emmc_mlo_register_handler(const char *name, char *devicefile) |