mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 07:13:33 +08:00
clang-tidy remove redundant
This commit is contained in:
+1
-1
Submodule src/drivers/gps/devices updated: 448f1e6577...61c7133372
@@ -1036,7 +1036,6 @@ void
|
||||
reset()
|
||||
{
|
||||
PX4_ERR("GPS reset not supported");
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1056,7 +1055,6 @@ info()
|
||||
g_dev[1]->print_info();
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
void print_usage()
|
||||
|
||||
@@ -740,7 +740,6 @@ void AttitudePositionEstimatorEKF::task_main()
|
||||
_task_running = false;
|
||||
|
||||
_estimator_task = -1;
|
||||
return;
|
||||
}
|
||||
|
||||
void AttitudePositionEstimatorEKF::initReferencePosition(hrt_abstime timestamp,
|
||||
|
||||
@@ -1357,7 +1357,6 @@ MulticopterAttitudeControl::task_main()
|
||||
}
|
||||
|
||||
_control_task = -1;
|
||||
return;
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
@@ -695,7 +695,6 @@ Navigator::task_main()
|
||||
PX4_INFO("exiting");
|
||||
|
||||
_navigator_task = -1;
|
||||
return;
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
@@ -119,7 +119,6 @@ static void usage(const char *reason)
|
||||
}
|
||||
|
||||
PX4_INFO("usage: position_estimator_inav {start|stop|status} [-v]\n");
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -493,7 +493,6 @@ int create_log_dir()
|
||||
|
||||
/* dir exists already */
|
||||
dir_number++;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (dir_number >= MAX_NO_LOGFOLDER) {
|
||||
|
||||
@@ -52,7 +52,6 @@ void pwm_limit_init(pwm_limit_t *limit)
|
||||
{
|
||||
limit->state = PWM_LIMIT_STATE_INIT;
|
||||
limit->time_armed = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
void pwm_limit_calc(const bool armed, const bool pre_armed, const unsigned num_channels, const uint16_t reverse_mask,
|
||||
@@ -225,5 +224,4 @@ void pwm_limit_calc(const bool armed, const bool pre_armed, const unsigned num_c
|
||||
break;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -836,7 +836,6 @@ void VtolAttitudeControl::task_main()
|
||||
|
||||
warnx("exit");
|
||||
_control_task = -1;
|
||||
return;
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
@@ -375,7 +375,6 @@ GPSSIM::task_main()
|
||||
|
||||
/* tell the dtor that we are exiting */
|
||||
_task = -1;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -594,7 +594,6 @@ tune_end:
|
||||
_default_tune_number = 0;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
@@ -317,10 +317,10 @@ int main(int argc, char **argv)
|
||||
set_cpu_scaling();
|
||||
|
||||
int index = 1;
|
||||
string commands_file = "";
|
||||
string commands_file;
|
||||
int positional_arg_count = 0;
|
||||
string data_path = "";
|
||||
string node_name = "";
|
||||
string data_path;
|
||||
string node_name;
|
||||
|
||||
// parse arguments
|
||||
while (index < argc) {
|
||||
@@ -501,7 +501,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
if (!daemon_mode) {
|
||||
string mystr = "";
|
||||
string mystr;
|
||||
string string_buffer[CMD_BUFF_SIZE];
|
||||
int buf_ptr_write = 0;
|
||||
int buf_ptr_read = 0;
|
||||
|
||||
Reference in New Issue
Block a user