[PATCH v9 2/4] Fix incorrect return code of boot option update