diff --git a/libuavcan/include/uavcan/util/linked_list.hpp b/libuavcan/include/uavcan/util/linked_list.hpp index d36e83b463..dcc91d61ed 100644 --- a/libuavcan/include/uavcan/util/linked_list.hpp +++ b/libuavcan/include/uavcan/util/linked_list.hpp @@ -99,9 +99,9 @@ unsigned LinkedListRoot::getLength() const template void LinkedListRoot::insert(T* node) { - UAVCAN_ASSERT(node); if (node == NULL) { + UAVCAN_ASSERT(0); return; } remove(node); // Making sure there will be no loops @@ -113,9 +113,9 @@ template template void LinkedListRoot::insertBefore(T* node, Predicate predicate) { - UAVCAN_ASSERT(node); if (node == NULL) { + UAVCAN_ASSERT(0); return; }