diff options
author | David S. Miller <davem@davemloft.net> | 2021-03-19 12:02:54 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-19 12:02:54 -0700 |
commit | fc72d4773c6b2ed860e69c646c9f3b9b9e38ad45 (patch) | |
tree | 3a63cbc820ca37a6f0effa2dcacf31fff9130782 /drivers/net/ethernet/huawei | |
parent | 3674d0539ffa05e3a5faa8ad8e2b1a2d17e21ef1 (diff) | |
download | linux-fc72d4773c6b2ed860e69c646c9f3b9b9e38ad45.tar.bz2 |
hinic: Remove unused variable.
drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c: In function ‘mgmt_recv_msg_handler’:
drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c:443:18: warning: unused variable ‘pdev’ [-Wunused-variable]
443 | struct pci_dev *pdev = pf_to_mgmt->hwif->pdev;
| ^~~~
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/huawei')
-rw-r--r-- | drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c b/drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c index 6b9b94a8925d..817173f1fbb7 100644 --- a/drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c +++ b/drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c @@ -440,7 +440,6 @@ static void mgmt_recv_msg_handler(struct hinic_pf_to_mgmt *pf_to_mgmt, struct hinic_recv_msg *recv_msg) { struct hinic_mgmt_msg_handle_work *mgmt_work = NULL; - struct pci_dev *pdev = pf_to_mgmt->hwif->pdev; mgmt_work = kzalloc(sizeof(*mgmt_work), GFP_KERNEL); if (!mgmt_work) |