mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 02:23:34 +08:00
clang-tidy: enable readability-simplify-boolean-expr and fix
This commit is contained in:
@@ -590,11 +590,7 @@ bool is_already_running(int instance)
|
||||
|
||||
if (fcntl(fd, F_SETLK, &fl) == -1) {
|
||||
// We failed to create a file lock, must be already locked.
|
||||
if (errno == EACCES || errno == EAGAIN) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return errno == EACCES || errno == EAGAIN;
|
||||
}
|
||||
|
||||
errno = 0;
|
||||
|
||||
Reference in New Issue
Block a user