Skip to content

Commit

Permalink
qed: remove redundant pointer 'name'
Browse files Browse the repository at this point in the history
Pointer 'name' is being assigned but is never used hence it is
redundant and can be removed.

Cleans up clang warning:
warning: variable 'name' set but not used [-Wunused-but-set-variable]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Colin Ian King authored and David S. Miller committed Jul 4, 2018
1 parent 5074298 commit 9b0bb10
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/ethernet/qlogic/qed/qed_dcbx.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ qed_dcbx_update_app_info(struct qed_dcbx_results *p_data,
struct qed_hw_info *p_info = &p_hwfn->hw_info;
enum qed_pci_personality personality;
enum dcbx_protocol_type id;
char *name;
int i;

for (i = 0; i < ARRAY_SIZE(qed_dcbx_app_update); i++) {
Expand All @@ -231,7 +230,6 @@ qed_dcbx_update_app_info(struct qed_dcbx_results *p_data,
continue;

personality = qed_dcbx_app_update[i].personality;
name = qed_dcbx_app_update[i].name;

qed_dcbx_set_params(p_data, p_info, enable,
prio, tc, type, personality);
Expand Down

0 comments on commit 9b0bb10

Please sign in to comment.