From 7daba4205afd1cffe690aee1f6857b5fb3566e14 Mon Sep 17 00:00:00 2001 From: Teresa Remmet Date: Tue, 28 Aug 2018 09:32:50 +0200 Subject: 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 Signed-off-by: Sascha Hauer --- arch/arm/mach-omap/am33xx_bbu_emmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3