diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-05-31 15:27:38 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-03 02:51:03 +0200 |
commit | b9f88982750d5c28b3c55ab8b802ecfa62a0bbd2 (patch) | |
tree | aa8712d51e7434be6c61ee05f35ecc410a0e0c0e /drivers/net/ethernet/qlogic | |
parent | Merge tag 'isdn-removal' of https://git.kernel.org/pub/scm/linux/kernel/git/a... (diff) | |
download | linux-b9f88982750d5c28b3c55ab8b802ecfa62a0bbd2.tar.xz linux-b9f88982750d5c28b3c55ab8b802ecfa62a0bbd2.zip |
qed: remove redundant assignment to rc
The variable rc is assigned with a value that is never read and
it is re-assigned a new value later on. The assignment is redundant
and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic')
-rw-r--r-- | drivers/net/ethernet/qlogic/qed/qed_sp_commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_sp_commands.c b/drivers/net/ethernet/qlogic/qed/qed_sp_commands.c index 5a495fda9e9d..7e0b795230b2 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_sp_commands.c +++ b/drivers/net/ethernet/qlogic/qed/qed_sp_commands.c @@ -588,7 +588,7 @@ int qed_sp_pf_update_stag(struct qed_hwfn *p_hwfn) { struct qed_spq_entry *p_ent = NULL; struct qed_sp_init_data init_data; - int rc = -EINVAL; + int rc; /* Get SPQ entry */ memset(&init_data, 0, sizeof(init_data)); |