Code style improvement, fix linter warning

This commit is contained in:
Lorenz Meier 2014-07-06 15:33:54 +02:00
parent ee5dfadb5d
commit 43a1c1b5f6
1 changed files with 1 additions and 3 deletions

View File

@ -50,10 +50,8 @@ UavcanEscController::UavcanEscController(uavcan::INode &node) :
int UavcanEscController::init() int UavcanEscController::init()
{ {
int res = -1;
// ESC status subscription // ESC status subscription
res = _uavcan_sub_status.start(StatusCbBinder(this, &UavcanEscController::esc_status_sub_cb)); int res = _uavcan_sub_status.start(StatusCbBinder(this, &UavcanEscController::esc_status_sub_cb));
if (res < 0) if (res < 0)
{ {
warnx("ESC status sub failed %i", res); warnx("ESC status sub failed %i", res);