Fixed code format and removed unused std::list

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois 2015-11-23 23:09:10 -08:00
parent be0c5aaef5
commit 1aeca4f64d
2 changed files with 3 additions and 3 deletions

View File

@ -766,6 +766,7 @@ ACCELSIM::start()
//PX4_INFO("ACCELSIM::start"); //PX4_INFO("ACCELSIM::start");
/* make sure we are stopped first */ /* make sure we are stopped first */
int ret = stop(); int ret = stop();
if (ret != 0) { if (ret != 0) {
PX4_ERR("ACCELSIM::start stop failed"); PX4_ERR("ACCELSIM::start stop failed");
} }
@ -775,9 +776,11 @@ ACCELSIM::start()
_mag_reports->flush(); _mag_reports->flush();
int ret2 = VirtDevObj::start(); int ret2 = VirtDevObj::start();
if (ret2 != 0) { if (ret2 != 0) {
PX4_ERR("ACCELSIM::start base class start failed"); PX4_ERR("ACCELSIM::start base class start failed");
} }
return (ret != 0 || ret2 != 0) ? -1 : 0; return (ret != 0 || ret2 != 0) ? -1 : 0;
} }
@ -785,7 +788,6 @@ int
ACCELSIM::stop() ACCELSIM::stop()
{ {
//PX4_INFO("ACCELSIM::stop"); //PX4_INFO("ACCELSIM::stop");
//PX4_BACKTRACE();
return VirtDevObj::stop(); return VirtDevObj::stop();
} }

View File

@ -48,8 +48,6 @@
#include <px4_posix.h> #include <px4_posix.h>
#include <list>
int px4_sem_init(px4_sem_t *s, int pshared, unsigned value) int px4_sem_init(px4_sem_t *s, int pshared, unsigned value)
{ {
// We do not used the process shared arg // We do not used the process shared arg