Linux: fixed bad return value

Function was always returning -ENOTTY instead of the "ret" variable.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois 2015-04-08 09:13:55 -07:00
parent 400b9ebc20
commit a6950eb7d3

View File

@ -315,7 +315,7 @@ VDev::ioctl(px4_dev_handle_t *handlep, int cmd, unsigned long arg)
break;
}
return -ENOTTY;
return ret;
}
int