hinic: Remove unused variable.
authorDavid S. Miller <davem@davemloft.net>
Fri, 19 Mar 2021 19:02:54 +0000 (12:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Mar 2021 19:02:54 +0000 (12:02 -0700)
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>
drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c

index 6b9b94a..817173f 100644 (file)
@@ -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)