mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 03:03:34 +08:00
trivial code style cleanup round 2
This commit is contained in:
@@ -71,8 +71,9 @@ int test_adc(int argc, char *argv[])
|
||||
/* read all channels available */
|
||||
ssize_t count = read(fd, data, sizeof(data));
|
||||
|
||||
if (count < 0)
|
||||
if (count < 0) {
|
||||
goto errout_with_dev;
|
||||
}
|
||||
|
||||
unsigned channels = count / sizeof(data[0]);
|
||||
|
||||
@@ -88,7 +89,7 @@ int test_adc(int argc, char *argv[])
|
||||
|
||||
errout_with_dev:
|
||||
|
||||
if (fd != 0) close(fd);
|
||||
if (fd != 0) { close(fd); }
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user