numam-dpdk/drivers/net
Kevin Traynor 841a0b7aed net/ipn3ke: fix TM commit check
Coverity is complaining about identical code regardless of which branch
of the if else is taken. Functionally it means an error will always be
returned if this if else is hit. Remove the else branch.

    CID 337928 (#1 of 1): Identical code for different branches
    (IDENTICAL_BRANCHES)identical_branches: The same code is executed
    regardless of whether n->level != IPN3KE_TM_NODE_LEVEL_COS ||
    n->n_children != 0U is true, because the 'then' and 'else' branches
    are identical. Should one of the branches be modified, or the entire
    'if' statement replaced?
1506  if (n->level != IPN3KE_TM_NODE_LEVEL_COS ||
1507          n->n_children != 0) {
1508          return -rte_tm_error_set(error,
1509                  EINVAL,
1510                  RTE_TM_ERROR_TYPE_UNSPECIFIED,
1511                  NULL,
1512                  rte_strerror(EINVAL));
    else_branch: The else branch, identical to the then branch.
1513  } else {
1514          return -rte_tm_error_set(error,
1515                  EINVAL,
1516                  RTE_TM_ERROR_TYPE_UNSPECIFIED,
1517                  NULL,
1518                  rte_strerror(EINVAL));
1519  }

Coverity issue: 337928
Fixes: c820468ac9 ("net/ipn3ke: support TM")
Cc: stable@dpdk.org

Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
Reviewed-by: Rosen Xu <rosen.xu@intel.com>
2019-11-08 16:40:28 +01:00
..
af_packet net/af_packet: improve Tx statistics accuracy 2019-10-23 16:43:10 +02:00
af_xdp net/af_xdp: support unaligned umem chunks 2019-10-23 16:43:10 +02:00
ark ethdev: make stats and xstats reset callbacks return int 2019-10-07 15:00:54 +02:00
atlantic net/atlantic: add FW mailbox guard mutex 2019-10-08 12:14:31 +02:00
avp ethdev: make stats and xstats reset callbacks return int 2019-10-07 15:00:54 +02:00
axgbe net/axgbe: fix double unlock 2019-10-23 16:43:10 +02:00
bnx2x net/bnx2x: fix meson build 2019-11-06 11:55:24 +01:00
bnxt net/bnxt: uninit locks during resource cleanup 2019-10-25 19:23:23 +02:00
bonding rename private header files 2019-10-27 22:03:06 +01:00
cxgbe net/cxgbe: fix races on flow API operations 2019-10-08 12:14:32 +02:00
dpaa bus/dpaa: move QBMAN global init to bus 2019-11-06 01:14:41 +01:00
dpaa2 net/dpaa2: fix possible use of uninitialized vars 2019-11-08 15:23:41 +01:00
e1000 net/e1000: clean LTO warnings 2019-11-08 15:23:41 +01:00
ena net/ena: change license clause to SPDX tags 2019-10-07 15:00:56 +02:00
enetc net/enetc: enable dpaax library 2019-10-23 16:43:10 +02:00
enic net: add new header file for VXLAN 2019-10-25 19:00:22 +02:00
failsafe rename private header files 2019-10-27 22:03:06 +01:00
fm10k drivers: remove duplicated compiler flags 2019-10-24 01:04:14 +02:00
hinic net/hinic: support getting Rx/Tx queues info 2019-10-23 16:43:08 +02:00
hns3 net/hns3: fix FLR reset 2019-10-25 19:23:23 +02:00
i40e net/i40e: clean LTO warnings 2019-11-08 15:23:41 +01:00
iavf net/iavf: enable AVX2 for iavf 2019-10-23 16:43:10 +02:00
ice net/ice: fix IPv6 UDP port matching 2019-10-25 19:20:24 +02:00
ifc net/ifc: clean LTO warnings 2019-11-08 15:23:41 +01:00
ipn3ke net/ipn3ke: fix TM commit check 2019-11-08 16:40:28 +01:00
ixgbe net/ixgbe: fix zeroing of RSS config 2019-10-25 19:20:47 +02:00
kni drivers/net: enable promiscuous and multicast by default 2019-10-23 16:43:10 +02:00
liquidio ethdev: change allmulticast callbacks to return status 2019-10-07 15:00:55 +02:00
memif net/memif: support multiple Tx 2019-10-25 19:00:22 +02:00
mlx4 net/mlx: fix debug build with icc 2019-10-25 19:23:22 +02:00
mlx5 net/mlx: fix debug build with icc 2019-10-25 19:23:22 +02:00
mvneta ethdev: make stats and xstats reset callbacks return int 2019-10-07 15:00:54 +02:00
mvpp2 ethdev: change allmulticast callbacks to return status 2019-10-07 15:00:55 +02:00
netvsc ethdev: change allmulticast callbacks to return status 2019-10-07 15:00:55 +02:00
nfb net/nfb: fix dependency check 2019-10-08 12:14:31 +02:00
nfp ethdev: make stats and xstats reset callbacks return int 2019-10-07 15:00:54 +02:00
null drivers/net: enable promiscuous and multicast by default 2019-10-23 16:43:10 +02:00
octeontx ethdev: make stats and xstats reset callbacks return int 2019-10-07 15:00:54 +02:00
octeontx2 net/octeontx2: support multicast filter 2019-10-23 16:43:10 +02:00
pcap net/pcap: fix argument checks 2019-11-08 15:34:10 +01:00
pfe net/pfe: add link status update 2019-10-23 16:43:08 +02:00
qede net/qede: clean LTO warnings 2019-11-08 15:23:41 +01:00
ring drivers/net: enable promiscuous and multicast by default 2019-10-23 16:43:10 +02:00
sfc drivers: remove duplicated compiler flags 2019-10-24 01:04:14 +02:00
softnic net/softnic: add subport config flexibility to TM 2019-10-25 17:53:00 +02:00
szedata2 net/szedata2: fix dependency check 2019-10-08 12:14:31 +02:00
tap net/tap: fix blocked Rx packets 2019-10-23 16:43:08 +02:00
thunderx ethdev: make stats and xstats reset callbacks return int 2019-10-07 15:00:54 +02:00
vdev_netvsc drivers: remove duplicated compiler flags 2019-10-24 01:04:14 +02:00
vhost net/vhost: support TSO disabling 2019-10-07 15:00:57 +02:00
virtio net/virtio: fix Tx checksum offloads 2019-10-25 19:23:23 +02:00
vmxnet3 ethdev: change allmulticast callbacks to return status 2019-10-07 15:00:55 +02:00
Makefile net/pfe: introduce basic functions 2019-10-23 16:43:08 +02:00
meson.build net/pfe: introduce basic functions 2019-10-23 16:43:08 +02:00