diff options
author | Peng Li <lipeng321@huawei.com> | 2018-12-20 11:52:06 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-12-19 23:47:59 -0800 |
commit | 1154bb26c879fea51c20aee167ddce4345caa255 (patch) | |
tree | cc0801ca07786cd460764eb6a285bd1914afa574 /drivers/net | |
parent | 31a16f99e02c2e0b40a5fb05d66f5e56721027e2 (diff) | |
download | linux-1154bb26c879fea51c20aee167ddce4345caa255.tar.bz2 |
net: hns3: remove redundant variable initialization
This patch removes the redundant variable initialization,
as driver will devm_kzalloc to set value to hdev soon.
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c index 156242f96a8e..82103d5fa815 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c @@ -1721,7 +1721,7 @@ static int hclgevf_configure(struct hclgevf_dev *hdev) static int hclgevf_alloc_hdev(struct hnae3_ae_dev *ae_dev) { struct pci_dev *pdev = ae_dev->pdev; - struct hclgevf_dev *hdev = ae_dev->priv; + struct hclgevf_dev *hdev; hdev = devm_kzalloc(&pdev->dev, sizeof(*hdev), GFP_KERNEL); if (!hdev) |