param_shmem: rename exit to do_exit

This commit is contained in:
Beat Küng
2018-08-31 15:55:45 +02:00
parent 4e6139d9fb
commit 1a4396c15e
+3 -3
View File
@@ -943,14 +943,14 @@ param_save_default(void)
if (fd < 0) {
PX4_ERR("failed to open param file: %s", filename);
goto exit;
goto do_exit;
}
res = param_export(fd, false);
if (res != OK) {
PX4_ERR("failed to write parameters to file: %s", filename);
goto exit;
goto do_exit;
}
PARAM_CLOSE(fd);
@@ -958,7 +958,7 @@ param_save_default(void)
fd = -1;
exit:
do_exit:
if (fd >= 0) {
close(fd);