]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlxfw: remove redundant goto on error check
authorColin Ian King <colin.king@canonical.com>
Tue, 6 Jun 2017 10:47:40 +0000 (11:47 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Jun 2017 16:21:29 +0000 (12:21 -0400)
commita856b149ab90e05e3f99ded1c831b6c3f0a02465
treeac87ea20de893af70c0fbc753a20b3e0ab2aa8ca
parenteeb56d9edbb5d87a2a2fc95c7764a4bf60b6faec
net/mlxfw: remove redundant goto on error check

The check to see of err is set and the subsequent goto is extraneous
as the next statement is where the goto is jumping to. Remove this
redundant check and goto.

Detected by CoverityScan, CID#1437734 ("Identical code for
different branches")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Yotam Gigi <yotamg@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxfw/mlxfw_mfa2.c