ASSERT: remove some inappropriate asserts

Since assertions lead to crashes, we need better failure handling. In all
the cases in this patch, the assert is not required.

All the ones with the task id should be replaced with the module base
class.

Ah yes, and this reduces flash space, since the ASSERT macro will expand to
a printf that contains the source file name.
This commit is contained in:
Beat Küng
2018-04-10 11:46:56 +02:00
parent a8645b51d5
commit 90513e719e
6 changed files with 0 additions and 10 deletions

View File

@@ -319,7 +319,6 @@ int uORB::Manager::orb_set_interval(int handle, unsigned interval)
int uORB::Manager::orb_get_interval(int handle, unsigned *interval)
{
ASSERT(interval);
int ret = px4_ioctl(handle, ORBIOCGETINTERVAL, (unsigned long)interval);
*interval /= 1000;
return ret;