net/ipn3ke: remove useless if statement
authorKevin Traynor <ktraynor@redhat.com>
Wed, 6 Nov 2019 19:01:59 +0000 (19:01 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 8 Nov 2019 15:40:28 +0000 (16:40 +0100)
commitd28ae28eb7cc1f58984a792ff352c1ed888c4523
tree6592d9fb0772e80f94acf4a71e16ce32b9b277e9
parent841a0b7aed3d2ac738167f9eff7f2e9d6dce8bd0
net/ipn3ke: remove useless if statement

Coverity complains that this statement is not needed as the goto
label is on the next line anyway. Remove the if statement.

653        ret = ipn3ke_cfg_parse_i40e_pf_ethdev(afu_name, pf_name);
   CID 337930 (#1 of 1): Identical code for different branches
   (IDENTICAL_BRANCHES)identical_branches: The same code is executed
   when the condition ret is true or false, because the code in the
   if-then branch and after the if statement is identical. Should
   the if statement be removed?
654        if (ret)
655                goto end;
   implicit_else: The code from the above if-then branch is identical
   to the code after the if statement.
656end:

Coverity issue: 337930
Fixes: c01c748e4ae6 ("net/ipn3ke: add new driver")
Cc: stable@dpdk.org
Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Rosen Xu <rosen.xu@intel.com>
drivers/net/ipn3ke/ipn3ke_ethdev.c