Coverity CID 1268181, 1268182

This commit is contained in:
Pavel Kirienko
2015-02-05 02:37:42 +03:00
parent b9f802026e
commit 315d21c256
@@ -99,9 +99,9 @@ unsigned LinkedListRoot<T>::getLength() const
template <typename T>
void LinkedListRoot<T>::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 <typename T>
template <typename Predicate>
void LinkedListRoot<T>::insertBefore(T* node, Predicate predicate)
{
UAVCAN_ASSERT(node);
if (node == NULL)
{
UAVCAN_ASSERT(0);
return;
}