Silence false errors, warnings and style issues reported by cppcheck.
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
        if (sect_type != ICE_SID_RXPARSER_BOOST_TCAM)
                return NULL;
 
+       /* cppcheck-suppress nullPointer */
        if (index > ICE_MAX_BST_TCAMS_IN_BUF)
                return NULL;
 
        if (!section)
                return NULL;
 
+       /* cppcheck-suppress nullPointer */
        if (index > ICE_MAX_LABELS_IN_BUF)
                return NULL;
 
                count++;
        list_for_each_entry(tmp2, list2, list)
                chk_count++;
+       /* cppcheck-suppress knownConditionTrueFalse */
        if (!count || count != chk_count)
                return false;
 
 
 
                /* Verify that the simple checksum is zero */
                for (i = 0; i < sizeof(tmp); i++)
+                       /* cppcheck-suppress objectIndex */
                        sum += ((u8 *)&tmp)[i];
 
                if (sum) {
 
        *num_nodes_added = 0;
        while (*num_nodes_added < num_nodes) {
                u16 max_child_nodes, num_added = 0;
+               /* cppcheck-suppress unusedVariable */
                u32 temp;
 
                status = ice_sched_add_nodes_to_hw_layer(pi, tc_node, parent,