osu: Fix to return non-zero if upgrade is failed 27/313227/1
authorSangYoun Kwak <sy.kwak@samsung.com>
Thu, 20 Jun 2024 06:39:05 +0000 (15:39 +0900)
committerSangYoun Kwak <sy.kwak@samsung.com>
Thu, 20 Jun 2024 07:13:11 +0000 (16:13 +0900)
commitfe2b53d90227820eed76f37785a551d09b13058e
treea335e97b8e6443614442bfa1f7553bc3ff7d0b47
parent44ff1d878f8b562648e102d33d45311455558f02
osu: Fix to return non-zero if upgrade is failed

In the previous code, osu returned 0 even if upgrade is failed, due to
the deinitialization code. Previously, if error occured during the
upgrade, aborted the rest works and called the deinitialization function
'update_control_deinitialize' and returned its return value.
This caused osu to return 0 even an error is occured, which is invalid
behavior.
To fix this issue, the return value of deinitialization function is
treated as a different variable.

Change-Id: Ie536bafc5bb4e31f461cf1df98db496d77a24664
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
tools/osu/update.c