From 315d21c2563b5cb854a08ed2c9393c3600ebd2b1 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Thu, 5 Feb 2015 02:37:42 +0300 Subject: [PATCH] Coverity CID 1268181, 1268182 --- libuavcan/include/uavcan/util/linked_list.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }