Commit 9e5f10fe authored by Colin Ian King's avatar Colin Ian King Committed by Jakub Kicinski

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: a83bdada ("octeontx2-af: Add debug messages for failures")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210818130927.33895-1-colin.king@canonical.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 185f690f
......@@ -1031,8 +1031,6 @@ static int rvu_setup_hw_resources(struct rvu *rvu)
"%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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment