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