summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-08-18 15:09:27 +0200
committerJakub Kicinski <kuba@kernel.org>2021-08-19 21:18:51 +0200
commit9e5f10fe577be7974c721c0c2050fa6c967d4565 (patch)
tree0893a8aba43cccbc48c48afe49648be729461aef
parentMerge tag 'linux-can-next-for-5.15-20210819' of git://git.kernel.org/pub/scm/... (diff)
downloadlinux-9e5f10fe577be7974c721c0c2050fa6c967d4565.tar.xz
linux-9e5f10fe577be7974c721c0c2050fa6c967d4565.zip
octeontx2-af: remove redudant second error check on variable err
A recent change added error checking messages and failed to remove one of the previous error checks. There are now two checks on variable err so the second one is redundant dead code and can be removed. Addresses-Coverity: ("Logically dead code") Fixes: a83bdada06bf ("octeontx2-af: Add debug messages for failures") Signed-off-by: Colin Ian King <colin.king@canonical.com> Link: https://lore.kernel.org/r/20210818130927.33895-1-colin.king@canonical.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r--drivers/net/ethernet/marvell/octeontx2/af/rvu.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu.c
index fb50df93b54e..c2438ba5e2ec 100644
--- a/drivers/net/ethernet/marvell/octeontx2/af/rvu.c
+++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu.c
@@ -1031,8 +1031,6 @@ cpt:
"%s: Failed to allocate CPT1 LF bitmap\n", __func__);
return err;
}
- if (err)
- return err;
/* Allocate memory for PFVF data */
rvu->pf = devm_kcalloc(rvu->dev, hw->total_pfs,