]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-af: remove redudant second error check on variable err
authorColin Ian King <colin.king@canonical.com>
Wed, 18 Aug 2021 13:09:27 +0000 (14:09 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 19 Aug 2021 19:18:51 +0000 (12:18 -0700)
commit8bbbf77b27f9e731b2e87a122374c82db06d310d
tree0893a8aba43cccbc48c48afe49648be729461aef
parentde72aca627a60ec433a5af518090c3b974ddb6a0
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: 717f71243b01 ("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>
drivers/net/ethernet/marvell/octeontx2/af/rvu.c